Skip to content

Commit b8589ec

Browse files
authored
Measure coverage with v4 of artifact actions (#3394)
1 parent f3bdc55 commit b8589ec

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,10 @@ jobs:
127127
PYTHON_VERSION: ${{ matrix.python-version }}
128128
NOX_SESSION: ${{ matrix.nox-session }}
129129

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

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

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

159160
- name: "Combine & check coverage"
160161
run: |
@@ -164,7 +165,7 @@ jobs:
164165
165166
- if: ${{ failure() }}
166167
name: "Upload report if check failed"
167-
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
168+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
168169
with:
169170
name: coverage-report
170171
path: htmlcov

0 commit comments

Comments
 (0)