Skip to content

Commit e0d1f7d

Browse files
committed
Upgrade GitHub Actions artifact actions
Thanks to Mark Walker for the required changes to the coverage workflow.
1 parent 55cb19c commit e0d1f7d

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ jobs:
4343
run: tox run -f py$(echo ${{ matrix.python-version }} | tr -d .)
4444

4545
- name: Upload coverage data
46-
uses: actions/upload-artifact@v3
46+
uses: actions/upload-artifact@v4
4747
with:
48-
name: coverage-data
49-
path: '.coverage.*'
48+
name: coverage-data-${{ matrix.python-version }}
49+
path: '${{ github.workspace }}/.coverage.*'
5050

5151
coverage:
5252
name: Coverage
@@ -63,9 +63,11 @@ jobs:
6363
run: python -m pip install --upgrade coverage[toml]
6464

6565
- name: Download data
66-
uses: actions/download-artifact@v3
66+
uses: actions/download-artifact@v4
6767
with:
68-
name: coverage-data
68+
path: ${{ github.workspace }}
69+
pattern: coverage-data-*
70+
merge-multiple: true
6971

7072
- name: Combine coverage and fail if it's <100%
7173
run: |
@@ -75,7 +77,7 @@ jobs:
7577
7678
- name: Upload HTML report
7779
if: ${{ failure() }}
78-
uses: actions/upload-artifact@v3
80+
uses: actions/upload-artifact@v4
7981
with:
8082
name: html-report
8183
path: htmlcov

0 commit comments

Comments
 (0)