Skip to content

Commit 869c4c7

Browse files
ci: upload coverage to codecov (#10)
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.
1 parent 14c7d2b commit 869c4c7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ jobs:
6262
name: coverage-attune-help
6363
path: coverage.xml
6464

65+
- name: Upload coverage to Codecov
66+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
67+
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
68+
with:
69+
files: ./coverage.xml
70+
fail_ci_if_error: false
71+
verbose: true
72+
env:
73+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
74+
6575
test-no-authoring-extra:
6676
name: zero-dep contract (no [authoring])
6777
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)