diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 344d41667..4b025e348 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -64,6 +64,12 @@ jobs: poe docs 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' }} name: Store the coverage report uses: actions/upload-artifact@v4 diff --git a/setup.cfg b/setup.cfg index 0b50485ea..000c4a77e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,10 +3,13 @@ cache_dir = /tmp/pytest_cache # slightly more verbose output console_output_style = count +# pretty-print test names in the Codecov U +junit_family = legacy addopts = # show all skipped/failed/xfailed tests in the summary except passed -ra --strict-config + --junitxml=.reports/pytest.xml markers = on_lyrics_update: mark a test to run only after lyrics source code is updated integration_test: mark a test as an integration test