Add JUnit test report upload to Codecov for improved test result visibility

This commit is contained in:
Bahram Farahmand 2025-04-08 22:24:02 +03:00
parent 9d7bf4e544
commit 0e88b87756
3 changed files with 4 additions and 2 deletions

View File

@ -260,12 +260,12 @@ jobs:
if: "matrix.use_coverage"
run: python -m coverage xml
- name: Upload coverage to Codecov
- name: Upload coverage and test results to Codecov
if: "matrix.use_coverage"
uses: codecov/codecov-action@v5
with:
fail_ci_if_error: false
files: ./coverage.xml
files: ./coverage.xml,./report.xml
verbose: true
check: # This job does nothing and is only used for the branch protection

View File

@ -0,0 +1 @@
Upload JUnit test reports to Codecov to enable test result visibility in the Codecov UI.

View File

@ -62,6 +62,7 @@ setenv =
coverage: _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess
coverage: COVERAGE_FILE={toxinidir}/.coverage
coverage: COVERAGE_PROCESS_START={toxinidir}/.coveragerc
coverage: PYTEST_ADDOPTS=--junitxml=report.xml
doctesting: _PYTEST_TOX_POSARGS_DOCTESTING=doc/en