Skip to content

Commit 0e3d6ab

Browse files
authored
Merge pull request #8 from cjermain/codecov_token
Adding CODECOV_TOKEN secret
2 parents 155d250 + cc9ff74 commit 0e3d6ab

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/CI.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ jobs:
4444
cargo llvm-cov report --lcov --output-path coverage.lcov
4545
- uses: codecov/codecov-action@v5
4646
with:
47+
token: ${{ secrets.CODECOV_TOKEN }}
4748
files: coverage.lcov,coverage.xml
4849
name: ${{ matrix.os }}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@ The last step of this process happens in the CI, where we upload both coverage
9999
files to CodeCov. [Merging reports](https://docs.codecov.com/docs/merging-reports)
100100
is an automatic feature of CodeCov, so the final view shows the combined view.
101101

102+
**Note:** Starting with `codecov-action@v4`, a `CODECOV_TOKEN` is required for
103+
uploading coverage reports. Add your token to GitHub repository secrets (see
104+
[Adding the Codecov token](https://docs.codecov.com/docs/adding-the-codecov-token))
105+
and reference it in the workflow with `token: ${{ secrets.CODECOV_TOKEN }}`.
106+
102107
# Excluding code from coverage
103108

104109
The `#[pymodule]` initialization function in `src/lib.rs` is surrounded by

0 commit comments

Comments
 (0)