@@ -210,7 +210,7 @@ jobs:
210
210
- name : Upload coverage artifacts
211
211
uses : actions/upload-artifact@v4
212
212
with :
213
- name : coverage-${{ matrix.pytorch_version }}
213
+ name : coverage-${{ matrix.pytorch_version }}-${{ github.run_id }}
214
214
path : ./coverage.xml
215
215
retention-days : 1
216
216
@@ -335,6 +335,14 @@ jobs:
335
335
run : |
336
336
modal run cicd.e2e_tests
337
337
338
+ - name : Upload coverage artifacts
339
+ if : always()
340
+ uses : actions/upload-artifact@v4
341
+ with :
342
+ name : coverage-e2e-1st-${{ github.run_id }}
343
+ path : ./e2e-coverage.xml
344
+ retention-days : 1
345
+
338
346
docker-e2e-tests :
339
347
if : github.repository_owner == 'axolotl-ai-cloud'
340
348
# this job needs to be run on self-hosted GPU runners...
@@ -389,6 +397,14 @@ jobs:
389
397
run : |
390
398
modal run cicd.e2e_tests
391
399
400
+ - name : Upload coverage artifacts
401
+ if : always()
402
+ uses : actions/upload-artifact@v4
403
+ with :
404
+ name : coverage-e2e-${{ matrix.cuda }}-${{ matrix.pytorch }}-${{ github.run_id }}
405
+ path : ./e2e-coverage.xml
406
+ retention-days : 1
407
+
392
408
docker-e2e-cleanup :
393
409
runs-on : [self-hosted, modal]
394
410
timeout-minutes : 90
@@ -433,6 +449,7 @@ jobs:
433
449
name : Upload Coverage to Codecov
434
450
runs-on : ubuntu-latest
435
451
needs : [pytest, docker-e2e-tests, docker-e2e-tests-1st]
452
+ if : github.event_name == 'pull_request' || github.ref == 'refs/heads/main'
436
453
437
454
steps :
438
455
- name : Download coverage reports
@@ -447,3 +464,7 @@ jobs:
447
464
directory : coverage-reports
448
465
fail_ci_if_error : false
449
466
verbose : true
467
+ carryforward : true
468
+ name : codecov-umbrella
469
+ override_commit : ${{ github.event.pull_request.head.sha || github.sha }}
470
+ override_pr : ${{ github.event.pull_request.number }}
0 commit comments