Skip to content

Commit

Permalink
fix: Update pytest command to force generating coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
prcr committed Sep 3, 2024
1 parent 5e69dfc commit c36dffb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/test-build-deploy.yml
Original file line number Diff line number Diff line change
@@ -33,16 +33,13 @@ jobs:

- name: Test with pytest
run:
pytest --cov
env:
PYTHONPATH: .
COVERAGE_FILE: .coverage.${{ matrix.python-version }}
pytest --cov-report xml:coverage.${{ matrix.python-version }}.xml --cov=mkdocs_meta_descriptions_plugin tests/

- name: Upload coverage artifact
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}
path: .coverage.${{ matrix.python-version }}
path: coverage.${{ matrix.python-version }}.xml
retention-days: 3

upload-coverage:

0 comments on commit c36dffb

Please sign in to comment.