Skip to content

Commit 2b12260

Browse files
committed
updates
1 parent fb4ce2a commit 2b12260

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/tests.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ jobs:
210210
- name: Upload coverage artifacts
211211
uses: actions/upload-artifact@v4
212212
with:
213-
name: coverage-${{ matrix.pytorch_version }}
213+
name: coverage-${{ matrix.pytorch_version }}-${{ github.run_id }}
214214
path: ./coverage.xml
215215
retention-days: 1
216216

@@ -335,6 +335,14 @@ jobs:
335335
run: |
336336
modal run cicd.e2e_tests
337337
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+
338346
docker-e2e-tests:
339347
if: github.repository_owner == 'axolotl-ai-cloud'
340348
# this job needs to be run on self-hosted GPU runners...
@@ -389,6 +397,14 @@ jobs:
389397
run: |
390398
modal run cicd.e2e_tests
391399
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+
392408
docker-e2e-cleanup:
393409
runs-on: [self-hosted, modal]
394410
timeout-minutes: 90
@@ -433,6 +449,7 @@ jobs:
433449
name: Upload Coverage to Codecov
434450
runs-on: ubuntu-latest
435451
needs: [pytest, docker-e2e-tests, docker-e2e-tests-1st]
452+
if: github.event_name == 'pull_request' || github.ref == 'refs/heads/main'
436453

437454
steps:
438455
- name: Download coverage reports
@@ -447,3 +464,7 @@ jobs:
447464
directory: coverage-reports
448465
fail_ci_if_error: false
449466
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 }}

cicd/cicd.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,3 @@ pytest -v --durations=10 \
5151
--cov=axolotl \
5252
--cov-append \
5353
--cov-report=xml:e2e-coverage.xml
54-
55-
codecov upload-process -t $CODECOV_TOKEN -f e2e-coverage.xml -F e2e,pytorch-${PYTORCH_VERSION} || true

0 commit comments

Comments
 (0)