Skip to content

Commit d418dc2

Browse files
committed
move token to yaml file, set fail_ci_if_error
1 parent 02a8406 commit d418dc2

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.codecov.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ codecov:
1111
notify_error: true # if uploads fail, replace cov comment with a comment with errors.
1212
require_ci_to_pass: false
1313

14+
# Publicly exposing the token has some small risks from mistakes or malicious actors.
15+
# See https://docs.codecov.com/docs/codecov-tokens for correctly configuring it.
16+
token: 87cefb17-c44b-4f2f-8b30-1fff5769ce46
17+
1418
# only post PR comment if coverage changes
1519
comment:
1620
require_changes: true

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,9 @@ jobs:
8585
uses: codecov/codecov-action@v3
8686
with:
8787
directory: empty
88-
token: 87cefb17-c44b-4f2f-8b30-1fff5769ce46
8988
name: Windows (${{ matrix.python }}, ${{ matrix.arch }}${{ matrix.extra_name }})
89+
# this option cannot be set in .codecov.yml
90+
fail_ci_if_error: true
9091

9192
Ubuntu:
9293
name: 'Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})'
@@ -134,8 +135,8 @@ jobs:
134135
uses: codecov/codecov-action@v3
135136
with:
136137
directory: empty
137-
token: 87cefb17-c44b-4f2f-8b30-1fff5769ce46
138138
name: Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})
139+
fail_ci_if_error: true
139140

140141
macOS:
141142
name: 'macOS (${{ matrix.python }})'
@@ -169,8 +170,8 @@ jobs:
169170
uses: codecov/codecov-action@v3
170171
with:
171172
directory: empty
172-
token: 87cefb17-c44b-4f2f-8b30-1fff5769ce46
173173
name: macOS (${{ matrix.python }})
174+
fail_ci_if_error: true
174175

175176
# run CI on a musl linux
176177
Alpine:
@@ -194,8 +195,8 @@ jobs:
194195
uses: codecov/codecov-action@v3
195196
with:
196197
directory: empty
197-
token: 87cefb17-c44b-4f2f-8b30-1fff5769ce46
198198
name: Alpine
199+
fail_ci_if_error: true
199200

200201
Cython:
201202
name: "Cython"

0 commit comments

Comments
 (0)