From 7c016b40b296ad26182c7def8b3efc89ce9bc121 Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Mon, 17 Aug 2026 10:58:14 +0300 Subject: T9220: ci: upload JUnit test results to Codecov Test Analytics (#497) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * T9220: ci: upload JUnit test results to Codecov Test Analytics (probe) Wire pytest JUnit XML output and a pinned codecov-action@v5.5.5 test-results upload step (tokenless, informational) as the public-class PF-B probe for the Codecov Test Analytics fleet rollout. 🤖 Generated by [robots](https://vyos.io) * T9220: ci: continue-on-error on test-results upload (informational posture) A step timeout would fail the job despite fail_ci_if_error: false; continue-on-error keeps the upload strictly informational. 🤖 Generated by [robots](https://vyos.io) * T9220: ci: fold test-results upload condition (yaml line-length) 🤖 Generated by [robots](https://vyos.io) --- .github/workflows/codecoverage.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to '.github/workflows/codecoverage.yml') diff --git a/.github/workflows/codecoverage.yml b/.github/workflows/codecoverage.yml index 5f8945d8..25155377 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.fork == false) && + 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 -- cgit v1.2.3