Enable basic Codecov Test Analytics with JUnit XML upload
This commit is contained in:
parent
2bd7982a5d
commit
03acc6ecff
1 changed files with 2 additions and 1 deletions
3
.github/workflows/coverage.yml
vendored
3
.github/workflows/coverage.yml
vendored
|
|
@ -41,7 +41,7 @@ jobs:
|
||||||
curl -o tests/test.mp3 https://www.kozco.com/tech/piano2-CoolEdit.mp3
|
curl -o tests/test.mp3 https://www.kozco.com/tech/piano2-CoolEdit.mp3
|
||||||
cat <<< "$HEADERS_AUTH" > tests/browser.json
|
cat <<< "$HEADERS_AUTH" > tests/browser.json
|
||||||
cat <<< "$TEST_CFG" > tests/test.cfg
|
cat <<< "$TEST_CFG" > tests/test.cfg
|
||||||
pdm run pytest
|
pdm run pytest --junitxml=test-results.xml
|
||||||
pdm run coverage xml
|
pdm run coverage xml
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage to Codecov
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
|
|
@ -55,3 +55,4 @@ jobs:
|
||||||
uses: codecov/test-results-action@v1
|
uses: codecov/test-results-action@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
files: test-results.xml
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue