Skip to content

Commit ad27dc7

Browse files
Bump actions/upload-artifact from 3 to 4 (#560)
* Bump actions/upload-artifact from 3 to 4 Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](actions/upload-artifact@v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * Migrate pypi to GHA artifacts v4 * Bump download-artifact to v4 * Eliminate undefined matrix.python-version variable * Upload/download each platform separately * Use pattern arg to download-artifact --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ben Mares <[email protected]>
1 parent cac9feb commit ad27dc7

File tree

2 files changed

+33
-17
lines changed

2 files changed

+33
-17
lines changed

.github/workflows/pypi.yml

+28-13
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ jobs:
3030
- name: Build SDist
3131
run: pipx run build --sdist
3232

33-
- uses: actions/upload-artifact@v3
33+
- uses: actions/upload-artifact@v4
3434
with:
35+
name: sdist
3536
path: dist/*.tar.gz
3637

3738
build_wheels:
38-
name: Build ${{ matrix.python-version }} wheels on ${{ matrix.platform }}
39+
name: Build wheels for ${{ matrix.platform }}
3940
runs-on: ${{ matrix.platform }}
4041
strategy:
4142
matrix:
@@ -51,19 +52,27 @@ jobs:
5152
- name: Build wheels
5253
uses: pypa/[email protected]
5354

54-
- uses: actions/upload-artifact@v3
55+
- uses: actions/upload-artifact@v4
5556
with:
57+
name: wheels-${{ matrix.platform }}
5658
path: ./wheelhouse/*.whl
5759

5860
check_dist:
5961
name: Check dist
6062
needs: [make_sdist,build_wheels]
6163
runs-on: ubuntu-22.04
6264
steps:
63-
- uses: actions/download-artifact@v3
65+
- uses: actions/download-artifact@v4
6466
with:
65-
name: artifact
67+
name: sdist
6668
path: dist
69+
70+
- uses: actions/download-artifact@v4
71+
with:
72+
pattern: wheels-*
73+
path: dist
74+
merge-multiple: true
75+
6776
- name: Check SDist
6877
run: |
6978
mkdir -p test-sdist
@@ -83,12 +92,18 @@ jobs:
8392
runs-on: ubuntu-latest
8493
if: github.event_name == 'release' && github.event.action == 'published'
8594
steps:
86-
- uses: actions/download-artifact@v3
87-
with:
88-
name: artifact
89-
path: dist
95+
- uses: actions/download-artifact@v4
96+
with:
97+
name: sdist
98+
path: dist
9099

91-
- uses: pypa/[email protected]
92-
with:
93-
user: __token__
94-
password: ${{ secrets.pypi_password }}
100+
- uses: actions/download-artifact@v4
101+
with:
102+
pattern: wheels-*
103+
path: dist
104+
merge-multiple: true
105+
106+
- uses: pypa/[email protected]
107+
with:
108+
user: __token__
109+
password: ${{ secrets.pypi_password }}

.github/workflows/test.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ jobs:
187187
FLOAT32: ${{ matrix.float32 }}
188188

189189
- name: Upload coverage file
190-
uses: actions/upload-artifact@v3
190+
uses: actions/upload-artifact@v4
191191
with:
192-
name: coverage
192+
name: coverage-${{ steps.matrix-id.outputs.id }}
193193
path: coverage/coverage-${{ steps.matrix-id.outputs.id }}.xml
194194

195195
benchmarks:
@@ -273,10 +273,11 @@ jobs:
273273
python -m pip install -U coverage>=5.1 coveralls
274274
275275
- name: Download coverage file
276-
uses: actions/download-artifact@v3
276+
uses: actions/download-artifact@v4
277277
with:
278-
name: coverage
278+
pattern: coverage-*
279279
path: coverage
280+
merge-multiple: true
280281

281282
- name: Upload coverage to Codecov
282283
uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)