Skip to content

Commit 7c19759

Browse files
committed
ci: explicitly specify token for codecov
Explicitly specify the codecov token to be used (i.e., `CODECOV_TOKEN`), given that the latest v4 release of the codecov action requires it to be able to generate coverage reports. Additionally, fail CI if coverage reporting fails, since coverage is an important enough metric for us to ensure that it's tracked consistently.
1 parent e6fe85a commit 7c19759

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
paths-ignore:
1212
- 'docs/**'
1313
schedule:
14-
- cron: '57 0 * * 5'
14+
- cron: '57 0 * * 5'
1515
jobs:
1616
test:
1717
runs-on: ${{ matrix.os }}
@@ -41,4 +41,6 @@ jobs:
4141
- uses: julia-actions/julia-processcoverage@v1
4242
- uses: codecov/codecov-action@v4
4343
with:
44-
file: lcov.info
44+
file: lcov.info
45+
token: ${{ secrets.CODECOV_TOKEN }}
46+
fail_ci_if_error: "true"

.github/workflows/Documentation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,6 @@ jobs:
2828
- uses: julia-actions/julia-processcoverage@v1
2929
- uses: codecov/codecov-action@v4
3030
with:
31-
file: lcov.info
31+
file: lcov.info
32+
token: ${{ secrets.CODECOV_TOKEN }}
33+
fail_ci_if_error: "true"

0 commit comments

Comments
 (0)