Skip to content

Commit 0655393

Browse files
authored
ci: explicitly specify token for codecov (#160)
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 d853031 commit 0655393

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
- uses: codecov/codecov-action@v4
2929
with:
3030
file: lcov.info
31+
token: ${{ secrets.CODECOV_TOKEN }}
32+
fail_ci_if_error: true
3133
# The standard setup of Coveralls is just annoying for parallel builds, see, e.g.,
3234
# https://github.com/trixi-framework/Trixi.jl/issues/691
3335
# https://github.com/coverallsapp/github-action/issues/47

0 commit comments

Comments
 (0)