Skip to content

Commit e07ae9d

Browse files
authored
Upgrade actions/[upload|download]-artifact and other GHA dependencies (#1016)
1 parent 102f52c commit e07ae9d

2 files changed

Lines changed: 18 additions & 14 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
}
9696
>> "${GITHUB_OUTPUT}"
9797
- name: Upload built artifacts for testing
98-
uses: actions/upload-artifact@v3
98+
uses: actions/upload-artifact@v4
9999
with:
100100
if-no-files-found: error
101101
name: ${{ needs.pre-setup.outputs.dists-artifact-name }}
@@ -180,17 +180,18 @@ jobs:
180180
181181
steps:
182182
- name: Retrieve the project source from an sdist inside the GHA artifact
183-
uses: re-actors/checkout-python-sdist@release/v1
183+
uses: re-actors/checkout-python-sdist@release/v2
184184
with:
185185
source-tarball-name: >-
186186
${{ needs.build-pure-python-dists.outputs.sdist-filename }}
187187
workflow-artifact-name: >-
188188
${{ needs.pre-setup.outputs.dists-artifact-name }}
189189
- name: Download distributions
190190
if: ${{ !endsWith(matrix.pyver, '-dev') && true || false }}
191-
uses: actions/download-artifact@v3
191+
uses: actions/download-artifact@v4
192192
with:
193-
name: ${{ needs.pre-setup.outputs.dists-artifact-name }}
193+
pattern: ${{ needs.pre-setup.outputs.dists-artifact-name }}*
194+
merge-multiple: true
194195
path: dist
195196

196197
- name: Setup Python ${{ matrix.pyver }}
@@ -318,7 +319,7 @@ jobs:
318319
# combining Linux and Windows paths is tricky, left this exercise for
319320
# others multidict has no Windows or macOS specific code paths anyway
320321
if: ${{ matrix.os == 'ubuntu' }}
321-
uses: aio-libs/prepare-coverage@v22.1.2
322+
uses: aio-libs/prepare-coverage@v24.9.2
322323

323324
test-summary:
324325
name: Tests status
@@ -336,16 +337,17 @@ jobs:
336337
with:
337338
jobs: ${{ toJSON(needs) }}
338339
- name: Retrieve the project source from an sdist inside the GHA artifact
339-
uses: re-actors/checkout-python-sdist@release/v1
340+
uses: re-actors/checkout-python-sdist@release/v2
340341
with:
341342
source-tarball-name: >-
342343
${{ needs.build-pure-python-dists.outputs.sdist-filename }}
343344
workflow-artifact-name: >-
344345
${{ needs.pre-setup.outputs.dists-artifact-name }}
345346
- name: Download artifacts
346-
uses: actions/download-artifact@v3
347+
uses: actions/download-artifact@v4
347348
with:
348-
name: coverage
349+
pattern: coverage*
350+
merge-multiple: true
349351
path: ${{ runner.temp }}/coverage
350352
- name: Install coverage
351353
run: |
@@ -420,17 +422,18 @@ jobs:
420422

421423
steps:
422424
- name: Retrieve the project source from an sdist inside the GHA artifact
423-
uses: re-actors/checkout-python-sdist@release/v1
425+
uses: re-actors/checkout-python-sdist@release/v2
424426
with:
425427
source-tarball-name: >-
426428
${{ needs.build-pure-python-dists.outputs.sdist-filename }}
427429
workflow-artifact-name: >-
428430
${{ needs.pre-setup.outputs.dists-artifact-name }}
429431
430432
- name: Download distributions
431-
uses: actions/download-artifact@v3
433+
uses: actions/download-artifact@v4
432434
with:
433-
name: ${{ needs.pre-setup.outputs.dists-artifact-name }}
435+
pattern: ${{ needs.pre-setup.outputs.dists-artifact-name }}*
436+
merge-multiple: true
434437
path: dist
435438
- run: |
436439
tree

.github/workflows/reusable-build-wheel.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
timeout-minutes: ${{ inputs.qemu && 47 || 14 }}
4343
steps:
4444
- name: Retrieve the project source from an sdist inside the GHA artifact
45-
uses: re-actors/checkout-python-sdist@release/v1
45+
uses: re-actors/checkout-python-sdist@release/v2
4646
with:
4747
source-tarball-name: ${{ inputs.source-tarball-name }}
4848
workflow-artifact-name: ${{ inputs.dists-artifact-name }}
@@ -73,9 +73,10 @@ jobs:
7373
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
7474

7575
- name: Upload built artifacts for testing and publishing
76-
uses: actions/upload-artifact@v3
76+
uses: actions/upload-artifact@v4
7777
with:
78-
name: ${{ inputs.dists-artifact-name }}
78+
name: >-
79+
${{ inputs.dists-artifact-name }}-${{ inputs.os }}-${{ inputs.qemu }}
7980
path: ./wheelhouse/*.whl
8081

8182
...

0 commit comments

Comments
 (0)