Skip to content

Commit 47e6766

Browse files
committed
CI: bump artifact actions v3 -> v4
GitHub auto-fails jobs using the deprecated actions/upload-artifact@v3 and download-artifact@v3, so CI never reached the test step. Bump both to v4. upload-artifact@v4 errors on duplicate artifact names, so in the test matrix the requirements.txt upload is gated to a single job (the docker job only needs one copy).
1 parent 438684a commit 47e6766

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ jobs:
5050
- name: Run tests
5151
run: python -m pytest tests
5252
- name: Store tested requirements.txt file as artifact
53-
uses: actions/upload-artifact@v3
53+
# Only upload from a single matrix job: upload-artifact@v4 errors on
54+
# duplicate artifact names, and the docker job only needs one copy.
55+
if: matrix.os == 'ubuntu-22.04' && matrix.python-version == '3.10'
56+
uses: actions/upload-artifact@v4
5457
with:
5558
name: requirements.txt
5659
path: |
@@ -74,7 +77,7 @@ jobs:
7477
echo "APP_VERSION=$(/tmp/tomlq/bin/tomlq -r .project.version pyproject.toml)" >> $GITHUB_ENV
7578
echo "APP_DESC=$(/tmp/tomlq/bin/tomlq -r .project.description pyproject.toml)" >> $GITHUB_ENV
7679
- name: Retrieve tested requirements file
77-
uses: actions/download-artifact@v3
80+
uses: actions/download-artifact@v4
7881
with:
7982
name: requirements.txt
8083
- name: Ensure docker build is working

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
requirements.txt
3232
Dockerfile
3333
- name: Store tested requirements.txt file as artifact
34-
uses: actions/upload-artifact@v3
34+
uses: actions/upload-artifact@v4
3535
with:
3636
name: requirements.txt
3737
path: |
@@ -54,7 +54,7 @@ jobs:
5454
echo "APP_VERSION=$(/tmp/tomlq/bin/tomlq -r .project.version pyproject.toml)" >> $GITHUB_ENV
5555
echo "APP_DESC=$(/tmp/tomlq/bin/tomlq -r .project.description pyproject.toml)" >> $GITHUB_ENV
5656
- name: Retrieve tested requirements file
57-
uses: actions/download-artifact@v3
57+
uses: actions/download-artifact@v4
5858
with:
5959
name: requirements.txt
6060
- name: Check file contents

0 commit comments

Comments
 (0)