Skip to content

Commit a3a72c0

Browse files
authored
ci: pass CODECOV_TOKEN explicitly to codecov-action (#21)
codecov-action@v4 was not picking up CODECOV_TOKEN from env automatically in this workflow (log shows 'no token was provided' even though the secret is configured in repo settings). Pass it explicitly via the token input to make uploads reliable. Also add: - files: ./coverage.xml - explicit report path - fail_ci_if_error: false - coverage upload failures shouldn't break the CI run
1 parent ac6db5d commit a3a72c0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,8 @@ jobs:
4545
- run: pip install -e ".[dev]"
4646
- run: coverage run -m pytest
4747
- uses: codecov/codecov-action@v4
48-
if: always()
48+
if: always()
49+
with:
50+
token: ${{ secrets.CODECOV_TOKEN }}
51+
files: ./coverage.xml
52+
fail_ci_if_error: false

0 commit comments

Comments
 (0)