Skip to content

Commit

Permalink
Measure coverage with v4 of artifact actions (#3394)
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed May 13, 2024
1 parent f3bdc55 commit b8589ec
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ jobs:
PYTHON_VERSION: ${{ matrix.python-version }}
NOX_SESSION: ${{ matrix.nox-session }}

- name: "Upload artifact"
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
- name: "Upload coverage data"
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: coverage-data
name: coverage-data-${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.experimental }}-${{ matrix.nox-session }}
path: ".coverage.*"
if-no-files-found: error

Expand All @@ -151,10 +151,11 @@ jobs:
- name: "Install coverage"
run: "python -m pip install -r dev-requirements.txt"

- name: "Download artifact"
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
- name: "Download coverage data"
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
name: coverage-data
pattern: coverage-data-*
merge-multiple: true

- name: "Combine & check coverage"
run: |
Expand All @@ -164,7 +165,7 @@ jobs:
- if: ${{ failure() }}
name: "Upload report if check failed"
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: coverage-report
path: htmlcov

0 comments on commit b8589ec

Please sign in to comment.