Skip to content

Commit 84df87c

Browse files
committed
Upload test results to codecov
1 parent 24ae1a7 commit 84df87c

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@ jobs:
6464
poe docs
6565
poe test-with-coverage
6666
67+
- if: ${{ !cancelled() }}
68+
name: Upload test results to Codecov
69+
uses: codecov/test-results-action@v1
70+
with:
71+
token: ${{ secrets.CODECOV_TOKEN }}
72+
6773
- if: ${{ env.IS_MAIN_PYTHON == 'true' }}
6874
name: Store the coverage report
6975
uses: actions/upload-artifact@v4

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
cache_dir = /tmp/pytest_cache
44
# slightly more verbose output
55
console_output_style = count
6+
# pretty-print test names in the Codecov U
7+
junit_family = legacy
68
addopts =
79
# show all skipped/failed/xfailed tests in the summary except passed
810
-ra
911
--strict-config
12+
--junitxml=.reports/pytest.xml
1013
markers =
1114
on_lyrics_update: mark a test to run only after lyrics source code is updated
1215
integration_test: mark a test as an integration test

0 commit comments

Comments
 (0)