Upload test results to codecov

This commit is contained in:
Šarūnas Nejus 2025-08-09 15:27:17 +01:00
parent 24ae1a765b
commit 84df87c665
No known key found for this signature in database
GPG key ID: DD28F6704DBE3435
2 changed files with 9 additions and 0 deletions

View file

@ -64,6 +64,12 @@ jobs:
poe docs poe docs
poe test-with-coverage poe test-with-coverage
- if: ${{ !cancelled() }}
name: Upload test results to Codecov
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- if: ${{ env.IS_MAIN_PYTHON == 'true' }} - if: ${{ env.IS_MAIN_PYTHON == 'true' }}
name: Store the coverage report name: Store the coverage report
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4

View file

@ -3,10 +3,13 @@
cache_dir = /tmp/pytest_cache cache_dir = /tmp/pytest_cache
# slightly more verbose output # slightly more verbose output
console_output_style = count console_output_style = count
# pretty-print test names in the Codecov U
junit_family = legacy
addopts = addopts =
# show all skipped/failed/xfailed tests in the summary except passed # show all skipped/failed/xfailed tests in the summary except passed
-ra -ra
--strict-config --strict-config
--junitxml=.reports/pytest.xml
markers = markers =
on_lyrics_update: mark a test to run only after lyrics source code is updated on_lyrics_update: mark a test to run only after lyrics source code is updated
integration_test: mark a test as an integration test integration_test: mark a test as an integration test