From 91ff83c2ef0cba9ed6c667c869e0f546f11adac7 Mon Sep 17 00:00:00 2001 From: Benjamin Thomas Schwertfeger Date: Sat, 4 Jul 2026 10:33:34 +0200 Subject: [PATCH] Upload test reports to Codecov --- .github/workflows/_test.yaml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_test.yaml b/.github/workflows/_test.yaml index 9f9fd62..909b829 100644 --- a/.github/workflows/_test.yaml +++ b/.github/workflows/_test.yaml @@ -54,7 +54,9 @@ jobs: run: python -m pip install --user . -r requirements-dev.txt - name: Run unit tests - run: pytest -vv --retries 1 -n auto --cov --cov-report=xml tests + run: > + pytest -vv --retries 1 -n auto --cov --cov-report=xml + --junitxml=junit-unittests.xml -o junit_family=legacy tests - name: Upload coverage to Codecov if: | @@ -69,5 +71,23 @@ jobs: env_vars: OS,PYTHON fail_ci_if_error: true flags: unittests + report_type: coverage + name: codecov-umbrella + verbose: true + + - name: Upload test results to Codecov + if: | + inputs.os == 'ubuntu-latest' + && inputs.python-version == '3.11' + && github.actor == 'btschwertfeger' + && (github.event_name == 'push' || github.event_name == 'release') + uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: junit-unittests.xml + env_vars: OS,PYTHON + fail_ci_if_error: true + flags: unittests + report_type: test_results name: codecov-umbrella verbose: true