Skip to content

Commit 27f1cc9

Browse files
authored
Switch to upload-artifact/download-artifact v4 (#670)
2 parents aa285c0 + 07e5c8c commit 27f1cc9

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.github/workflows/ci.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
- run: nox -e ${{ matrix.task.nox }}
5050

5151
- name: Publish
52-
uses: actions/upload-artifact@v3
52+
uses: actions/upload-artifact@v4
5353
with:
5454
name: dist
5555
path: dist/
@@ -84,7 +84,7 @@ jobs:
8484
- uses: actions/checkout@v3
8585

8686
- name: Download package files
87-
uses: actions/download-artifact@v3
87+
uses: actions/download-artifact@v4
8888
with:
8989
name: dist
9090
path: dist/
@@ -104,9 +104,9 @@ jobs:
104104
- run: nox --python ${{ matrix.python.action }} -e ${{ matrix.task.nox }} -- --use-wheel dist/*.whl
105105

106106
- name: Upload coverage data
107-
uses: actions/upload-artifact@v3
107+
uses: actions/upload-artifact@v4
108108
with:
109-
name: coverage-data
109+
name: coverage-data-${{ matrix.python.action }}
110110
path: .coverage.*
111111
include-hidden-files: true
112112
if-no-files-found: ignore
@@ -131,7 +131,7 @@ jobs:
131131
- uses: actions/checkout@v3
132132

133133
- name: Download package files
134-
uses: actions/download-artifact@v3
134+
uses: actions/download-artifact@v4
135135
with:
136136
name: dist
137137
path: dist/
@@ -178,7 +178,7 @@ jobs:
178178
fetch-depth: 0
179179

180180
- name: Download package files
181-
uses: actions/download-artifact@v3
181+
uses: actions/download-artifact@v4
182182
with:
183183
name: dist
184184
path: dist/
@@ -246,7 +246,7 @@ jobs:
246246
- uses: actions/checkout@v3
247247

248248
- name: Download package files
249-
uses: actions/download-artifact@v3
249+
uses: actions/download-artifact@v4
250250
with:
251251
name: dist
252252
path: dist/
@@ -283,9 +283,11 @@ jobs:
283283

284284
- run: python -Im pip install --upgrade coverage[toml]
285285

286-
- uses: actions/download-artifact@v3
286+
- uses: actions/download-artifact@v4
287287
with:
288-
name: coverage-data
288+
pattern: coverage-data-*
289+
merge-multiple: true
290+
path: .
289291

290292
- name: Combine coverage & fail if it's <100%.
291293
run: |
@@ -299,10 +301,11 @@ jobs:
299301
python -Im coverage report --fail-under=100
300302
301303
- name: Upload HTML report if check failed.
302-
uses: actions/upload-artifact@v3
304+
uses: actions/upload-artifact@v4
303305
with:
304306
name: html-report
305307
path: htmlcov
308+
include-hidden-files: true
306309
if: ${{ failure() }}
307310

308311
# This is a meta-job to simplify PR CI enforcement configuration in GitHub.

src/towncrier/newsfragments/669.misc.rst

Whitespace-only changes.

0 commit comments

Comments
 (0)