@@ -215,14 +215,13 @@ jobs:
215
215
LSP : ' ${{ matrix.lsp }}'
216
216
LSP_EXTRACT_FILE : ' ${{ matrix.lsp_extract_file }}'
217
217
- if : always()
218
- uses : codecov/codecov-action@v3
218
+ uses : codecov/codecov-action@v5
219
219
with :
220
- directory : empty
221
220
name : Windows (${{ matrix.python }}, ${{ matrix.arch }}${{ matrix.extra_name }})
222
221
# multiple flags is marked as an error in codecov UI, but is actually fine
223
222
# https://github.com/codecov/feedback/issues/567
224
223
flags : Windows,${{ matrix.python }}
225
- fail_ci_if_error : false # change to true when using codecov action v5
224
+ fail_ci_if_error : true
226
225
227
226
Ubuntu :
228
227
name : ' Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})'
@@ -291,12 +290,11 @@ jobs:
291
290
- if : >-
292
291
always()
293
292
&& matrix.check_formatting != '1'
294
- uses: codecov/codecov-action@v3
293
+ uses: codecov/codecov-action@v5
295
294
with:
296
- directory: empty
297
295
name: Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})
298
296
flags: Ubuntu,${{ matrix.python }}
299
- fail_ci_if_error: false
297
+ fail_ci_if_error: true
300
298
301
299
macOS :
302
300
name : ' macOS (${{ matrix.python }})'
@@ -334,12 +332,11 @@ jobs:
334
332
- name : Run tests
335
333
run : ./ci.sh
336
334
- if : always()
337
- uses : codecov/codecov-action@v3
335
+ uses : codecov/codecov-action@v5
338
336
with :
339
- directory : empty
340
337
name : macOS (${{ matrix.python }})
341
338
flags : macOS,${{ matrix.python }}
342
- fail_ci_if_error : false
339
+ fail_ci_if_error : true
343
340
344
341
# run CI on a musl linux
345
342
Alpine :
@@ -353,9 +350,10 @@ jobs:
353
350
- name : Install necessary packages
354
351
# can't use setup-python because that python doesn't seem to work;
355
352
# `python3-dev` (rather than `python:alpine`) for some ctypes reason,
353
+ # `curl`, `gpg`, `git` for codecov-action v4/v5 to work (https://github.com/codecov/codecov-action/issues/1320).
356
354
# `nodejs` for pyright (`node-env` pulls in nodejs but that takes a while and can time out the test).
357
355
# `perl` for a platform independent `sed -i` alternative
358
- run : apk update && apk add python3-dev bash nodejs perl
356
+ run : apk update && apk add python3-dev bash curl gpg git nodejs perl
359
357
360
358
- name : Retrieve the project source from an sdist inside the GHA artifact
361
359
# must be after `apk add` because it relies on `bash` existing
@@ -380,12 +378,11 @@ jobs:
380
378
f.write("\n")
381
379
382
380
- if : always()
383
- uses : codecov/codecov-action@v3
381
+ uses : codecov/codecov-action@v5
384
382
with :
385
- directory : empty
386
383
name : Alpine
387
384
flags : Alpine,${{ steps.get-version.outputs.version }}
388
- fail_ci_if_error : false
385
+ fail_ci_if_error : true
389
386
390
387
Cython :
391
388
name : " Cython"
@@ -453,7 +450,7 @@ jobs:
453
450
with :
454
451
name : Cython
455
452
flags : Cython,${{ steps.get-version.outputs.version }}
456
- fail_ci_if_error : false
453
+ fail_ci_if_error : true
457
454
458
455
# https://github.com/marketplace/actions/alls-green#why
459
456
check : # This job does nothing and is only used for the branch protection
0 commit comments