Skip to content

Commit 78d1c5d

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 e48d119 commit 78d1c5d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ jobs:
3838
${{ runner.os }}-test-
3939
${{ runner.os }}-
4040
- run: >
41-
sudo apt-get install --no-install-recommends python3-setuptools python3-wheel
42-
&& pip3 install sympy
41+
sudo apt-get install --no-install-recommends python3-setuptools python3-wheel && pip3 install sympy
42+
4343
- uses: julia-actions/julia-buildpkg@v1
4444
- uses: julia-actions/julia-runtest@v1
4545
- uses: julia-actions/julia-processcoverage@v1
4646
- uses: codecov/codecov-action@v4
4747
with:
4848
file: lcov.info
49+
token: ${{ secrets.CODECOV_TOKEN }}
50+
fail_ci_if_error: true

.github/workflows/Documentation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ jobs:
2727
- uses: codecov/codecov-action@v4
2828
with:
2929
file: lcov.info
30+
token: ${{ secrets.CODECOV_TOKEN }}
31+
fail_ci_if_error: true

0 commit comments

Comments
 (0)