Skip to content

Commit e17e32d

Browse files
ci: upload coverage to codecov (#65)
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 c4519dd commit e17e32d

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
@@ -61,6 +61,16 @@ jobs:
6161
name: coverage-attune-gui
6262
path: coverage.xml
6363

64+
- name: Upload coverage to Codecov
65+
if: matrix.python-version == '3.11'
66+
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
67+
with:
68+
files: ./coverage.xml
69+
fail_ci_if_error: false
70+
verbose: true
71+
env:
72+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
73+
6474
frontend:
6575
name: frontend (Vitest)
6676
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)