3232 fail-fast : false
3333 matrix :
3434 os : ["ubuntu-latest"] # can add windows-latest, macos-latest
35- python : ["3.7", "3. 9", "3.10"]
35+ python : ["3.9", "3.10"]
3636 install : ["-e .[dev]"]
3737 # Make one version be non-editable to test both paths of version code
3838 include :
8888 pipx run build
8989
9090 - name : Upload sdist and wheel as artifacts
91- uses : actions/upload-artifact@v3
91+ uses : actions/upload-artifact@v4
9292 with :
93- name : dist
93+ name : dist_${{ github.job }}_${{ matrix.python }}
9494 path : dist
9595
9696 - name : Check for packaging errors
@@ -124,7 +124,7 @@ jobs:
124124 run : echo IMAGE_REPOSITORY=ghcr.io/$(tr '[:upper:]' '[:lower:]' <<< "${{ github.repository }}") >> $GITHUB_ENV
125125
126126 - name : Download wheel and lockfiles
127- uses : actions/download-artifact@v3
127+ uses : actions/download-artifact@v4
128128 with :
129129 path : artifacts/
130130
@@ -153,7 +153,7 @@ jobs:
153153 uses : docker/build-push-action@v3
154154 with :
155155 build-args : |
156- PIP_OPTIONS=-r lockfiles /requirements.txt dist /*.whl
156+ PIP_OPTIONS=-r lockfiles_dist_ /requirements.txt dist_dist_ /*.whl
157157 push : ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
158158 load : ${{ ! (github.event_name == 'push' && startsWith(github.ref, 'refs/tags')) }}
159159 tags : ${{ steps.meta.outputs.tags }}
@@ -177,11 +177,11 @@ jobs:
177177 HAS_PYPI_TOKEN : ${{ secrets.PYPI_TOKEN != '' }}
178178
179179 steps :
180- - uses : actions/download-artifact@v3
180+ - uses : actions/download-artifact@v4
181181
182182 - name : Fixup blank lockfiles
183183 # Github release artifacts can't be blank
184- run : for f in lockfiles /*; do [ -s $f ] || echo '# No requirements' >> $f; done
184+ run : for f in lockfiles_dist_ /*; do [ -s $f ] || echo '# No requirements' >> $f; done
185185
186186 - name : Github Release
187187 # We pin to the SHA, not the tag, for security reasons.
@@ -190,8 +190,8 @@ jobs:
190190 with :
191191 prerelease : ${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') || contains(github.ref_name, 'rc') }}
192192 files : |
193- dist /*
194- lockfiles /*
193+ dist_dist_ /*
194+ lockfiles_dist_ /*
195195 generate_release_notes : true
196196 env :
197197 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments