summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-08-17 14:39:04 +0300
committerGitHub <noreply@github.com>2026-08-17 14:39:04 +0300
commit8d48f02bf725d1a53bd4837a348fc10eced7766d (patch)
tree203b719a7e73f977d090f35e1dd518e966f8b78e
parent7bf06495069aa7229fa85ff36c1b7e06f90aa5f0 (diff)
downloadrest.vyos-8d48f02bf725d1a53bd4837a348fc10eced7766d.tar.gz
rest.vyos-8d48f02bf725d1a53bd4837a348fc10eced7766d.zip
T9220: ci: upload JUnit test results to Codecov Test Analytics (#22)
* T9220: ci: upload JUnit test results to Codecov Test Analytics Wire pytest JUnit XML output and a pinned codecov-action@v5.5.5 test-results upload step (tokenless, informational) — Codecov Test Analytics fleet rollout, T1 batch. Pattern proven on the vyos.vyos probe. 🤖 Generated by [robots](https://vyos.io) * T9220: ci: compare head repo identity, not fork flag (review finding) 🤖 Generated by [robots](https://vyos.io)
-rw-r--r--.github/workflows/codecoverage.yml20
1 files changed, 19 insertions, 1 deletions
diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml
index 5f8945d..8fc7418 100644
--- a/.github/workflows/codecoverage.yml
+++ b/.github/workflows/codecoverage.yml
@@ -58,7 +58,7 @@ jobs:
- name: Run Coverage tests
run: |
- pytest tests/unit -v --cov-report xml --cov=./
+ pytest tests/unit -v --cov-report xml --cov=./ --junitxml=test-results/junit-codecoverage-codecoverage-pytest-s0.xml
working-directory: ${{ steps.identify.outputs.collection_path }}
- name: Upload coverage report to Codecov
@@ -69,3 +69,21 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
+
+ - name: Upload test results to Codecov
+ if: >-
+ ${{ !cancelled() &&
+ (github.event_name != 'pull_request' ||
+ github.event.pull_request.head.repo.full_name == github.repository) &&
+ github.actor != 'dependabot[bot]' }}
+ uses: codecov/codecov-action@0fb7174895f61a3b6b78fc075e0cd60383518dac # v5.5.5
+ timeout-minutes: 5
+ continue-on-error: true
+ with:
+ report_type: test_results
+ files: ${{ steps.identify.outputs.collection_path }}/test-results/junit-codecoverage-codecoverage-pytest-s0.xml
+ disable_search: true
+ fail_ci_if_error: false
+ flags: unit-pytest-s0
+ name: unit-pytest-s0
+ version: v11.3.1