run codecov action at end of CI; only_pulls: true
This commit is contained in:
31
.github/workflows/tests.yml
vendored
31
.github/workflows/tests.yml
vendored
@@ -106,13 +106,12 @@ jobs:
|
|||||||
pytest -v tests/patched/ --cov=axolotl --cov-append --cov-report=xml
|
pytest -v tests/patched/ --cov=axolotl --cov-append --cov-report=xml
|
||||||
pytest -v tests/cli/ --cov=axolotl --cov-append --cov-report=xml
|
pytest -v tests/cli/ --cov=axolotl --cov-append --cov-report=xml
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload coverage artifacts
|
||||||
uses: codecov/codecov-action@v5
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
name: coverage-${{ matrix.pytorch_version }}
|
||||||
files: ./coverage.xml
|
path: ./coverage.xml
|
||||||
flags: unittests,pytorch-${{ matrix.pytorch_version }}
|
retention-days: 1
|
||||||
fail_ci_if_error: false
|
|
||||||
|
|
||||||
- name: cleanup pip cache
|
- name: cleanup pip cache
|
||||||
run: |
|
run: |
|
||||||
@@ -336,3 +335,23 @@ jobs:
|
|||||||
- name: Run tests job on Modal
|
- name: Run tests job on Modal
|
||||||
run: |
|
run: |
|
||||||
modal run cicd.cleanup
|
modal run cicd.cleanup
|
||||||
|
|
||||||
|
upload-coverage:
|
||||||
|
name: Upload Coverage to Codecov
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [pytest, docker-e2e-tests, docker-e2e-tests-1st]
|
||||||
|
if: always()
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Download coverage reports
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
path: coverage-reports
|
||||||
|
|
||||||
|
- name: Upload coverage to Codecov
|
||||||
|
uses: codecov/codecov-action@v5
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
directory: coverage-reports
|
||||||
|
fail_ci_if_error: false
|
||||||
|
verbose: true
|
||||||
|
|||||||
Reference in New Issue
Block a user