From a5e76d5ec3df90fa8f239b7f8ca7eaaf3d5449c9 Mon Sep 17 00:00:00 2001 From: GeneAI Date: Mon, 25 May 2026 15:16:59 -0400 Subject: [PATCH] ci: upload coverage to codecov MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the codecov upload step right after the existing coverage.xml artifact upload. Same pattern as attune-ai (codecov-action v6.0.1, fail_ci_if_error: false, token via env). Requires CODECOV_TOKEN to be set as a GitHub Actions secret on this repo BEFORE merging — without it, codecov-action 6.0.1 rejects uploads to protected branches with HTTP 400. The workflow stays green either way (fail_ci_if_error: false), but the codecov reports won't populate until the secret is in place. --- .github/workflows/tests.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 62fa4a1..935d728 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -62,6 +62,16 @@ jobs: name: coverage-attune-help path: coverage.xml + - name: Upload coverage to Codecov + if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11' + uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1 + with: + files: ./coverage.xml + fail_ci_if_error: false + verbose: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + test-no-authoring-extra: name: zero-dep contract (no [authoring]) runs-on: ubuntu-latest