Skip to content

Commit

Permalink
Merge pull request #8 from ArneBinder/fix_codecov_upload
Browse files Browse the repository at this point in the history
fix codecov upload
  • Loading branch information
ArneBinder authored Oct 24, 2023
2 parents 90996f4 + 5313921 commit fed3e23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ jobs:
run: poetry install --no-interaction

#----------------------------------------------
# run test suite
# run test suite and upload coverage data
#----------------------------------------------
- name: Run tests with coverage
run: |
source .venv/bin/activate
pytest -k "not slow" --cov --cov-fail-under=90 --cov-report term-missing
pytest -k "not slow" --cov --cov-fail-under=90 --cov-report term-missing --cov-report xml:coverage.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
with:
files: ./coverage.xml
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit fed3e23

Please sign in to comment.