Skip to content

Commit

Permalink
ci: add uploading of test results to Codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
mikapfl committed Oct 21, 2024
1 parent 770a8f2 commit 36494c7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,16 @@ jobs:
if: startsWith(matrix.os, 'windows')
run: |
.venv\Scripts\activate
pytest --xdoc --cov=primap2 --cov-report=xml
pytest --xdoc --cov=primap2 --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 36494c7

Please sign in to comment.