File tree Expand file tree Collapse file tree 1 file changed +1
-30
lines changed Expand file tree Collapse file tree 1 file changed +1
-30
lines changed Original file line number Diff line number Diff line change @@ -223,38 +223,9 @@ jobs:
223
223
with :
224
224
paths : " **/results.xml"
225
225
226
- - name : Upload coverage to artifacts
226
+ - name : Upload to Codecov
227
227
# Even if tox fails, upload coverage
228
228
if : ${{ (success() || failure()) && contains(matrix.coverage, 'codecov') && matrix.pytest == 'true' }}
229
- uses : actions/upload-artifact@v4
230
- with :
231
- name : coverage_${{ matrix.toxenv }}
232
- path : coverage.xml
233
- if-no-files-found : error
234
-
235
- upload-codecov :
236
- needs : [tox]
237
- permissions :
238
- contents : none
239
- runs-on : ubuntu-latest
240
- name : Upload Coverage
241
- steps :
242
-
243
- - name : Download coverage artifacts
244
- uses : actions/download-artifact@v4
245
- with :
246
- path : coverage
247
- pattern : coverage_*
248
- merge-multiple : false
249
-
250
- - name : Display structure of downloaded files
251
- run : ls -R
252
-
253
- - name : Upload report to Codecov
254
- if : ${{ hashFiles('coverage/') != '' }}
255
229
uses : codecov/codecov-action@v4
256
230
with :
257
231
token : ${{ secrets.CODECOV_TOKEN }}
258
- directory : coverage
259
- fail_ci_if_error : true
260
- verbose : true
You can’t perform that action at this time.
0 commit comments