diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 4081fe1..79add04 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -2,28 +2,25 @@ name: Python Tests on: push: - pull_request: jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - python-version: [3.8] steps: - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} + - name: Set up Python 3.8 uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} + python-version: 3.8 - name: Install dependencies run: | pip install poetry poetry install - - name: Run pytest and generate HTML report - run: poetry run pytest --html=report.html --self-contained-html - - name: Upload HTML report - uses: actions/upload-artifact@v4 + - name: Run pytest with coverage and generate report + run: poetry run pytest --cov=tests --cov-report=xml tests/ + - name: Upload coverage to Cobertura + uses: 5monkeys/cobertura-action@master with: - name: pytest-report - path: report.html + path: coverage.xml + minimum_coverage: 70 + skip_covered: false \ No newline at end of file