Skip to content

Commit 0eb54dd

Browse files
authored
Fixing deployment action (#4954)
* update deployment action for latest releases of artifact download and upload * exclude full deploy tests with py3.13
1 parent 596cd7c commit 0eb54dd

File tree

1 file changed

+22
-16
lines changed

1 file changed

+22
-16
lines changed

.github/workflows/deploy.yaml

+22-16
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
fetch-depth: 0
5252

5353
- name: Build wheels
54-
uses: pypa/cibuildwheel@v2.20.0
54+
uses: pypa/cibuildwheel@v2.23.0
5555
with:
5656
package-dir: package
5757
env:
@@ -63,8 +63,9 @@ jobs:
6363
if: |
6464
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/package')) ||
6565
(github.event_name == 'release' && github.event.action == 'published')
66-
uses: actions/upload-artifact@v3
66+
uses: actions/upload-artifact@v4
6767
with:
68+
name: wheel-${{ matrix.buildplat[0] }}-${{ matrix.python }}
6869
path: wheelhouse/*.whl
6970
retention-days: 7
7071

@@ -88,8 +89,9 @@ jobs:
8889
if: |
8990
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/package')) ||
9091
(github.event_name == 'release' && github.event.action == 'published')
91-
uses: actions/upload-artifact@v3
92+
uses: actions/upload-artifact@v4
9293
with:
94+
name: sdist
9395
path: package/dist/*.tar.gz
9496
retention-days: 7
9597

@@ -113,8 +115,9 @@ jobs:
113115
if: |
114116
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/package')) ||
115117
(github.event_name == 'release' && github.event.action == 'published')
116-
uses: actions/upload-artifact@v3
118+
uses: actions/upload-artifact@v4
117119
with:
120+
name: sdist_tests
118121
path: testsuite/dist/*.tar.gz
119122
retention-days: 7
120123

@@ -131,18 +134,18 @@ jobs:
131134
runs-on: ubuntu-latest
132135
needs: [build_wheels, build_sdist, build_sdist_tests]
133136
steps:
134-
- uses: actions/download-artifact@v3
137+
- uses: actions/download-artifact@v4
135138
with:
136-
name: artifact
137139
path: dist
140+
merge-multiple: true
138141

139142
- name: move_test_dist
140143
run: |
141144
mkdir -p testsuite/dist
142145
mv dist/mdanalysistests-* testsuite/dist
143146
144147
- name: upload_source_and_wheels
145-
uses: pypa/gh-action-pypi-publish@v1.11.0
148+
uses: pypa/gh-action-pypi-publish@v1.12.4
146149
with:
147150
skip_existing: true
148151
repository_url: https://test.pypi.org/legacy/
@@ -160,18 +163,18 @@ jobs:
160163
runs-on: ubuntu-latest
161164
needs: [build_wheels, build_sdist, build_sdist_tests]
162165
steps:
163-
- uses: actions/download-artifact@v3
166+
- uses: actions/download-artifact@v4
164167
with:
165-
name: artifact
166168
path: dist
169+
merge-multiple: true
167170

168171
- name: move_test_dist
169172
run: |
170173
mkdir -p testsuite/dist
171174
mv dist/mdanalysistests-* testsuite/dist
172175
173176
- name: upload_tests
174-
uses: pypa/gh-action-pypi-publish@v1.11.0
177+
uses: pypa/gh-action-pypi-publish@v1.12.4
175178
with:
176179
packages_dir: testsuite/dist
177180
skip_existing: true
@@ -190,18 +193,18 @@ jobs:
190193
runs-on: ubuntu-latest
191194
needs: [build_wheels, build_sdist, build_sdist_tests]
192195
steps:
193-
- uses: actions/download-artifact@v3
196+
- uses: actions/download-artifact@v4
194197
with:
195-
name: artifact
196198
path: dist
199+
merge-multiple: true
197200

198201
- name: move_test_dist
199202
run: |
200203
mkdir -p testsuite/dist
201204
mv dist/mdanalysistests-* testsuite/dist
202205
203206
- name: upload_source_and_wheels
204-
uses: pypa/gh-action-pypi-publish@v1.11.0
207+
uses: pypa/gh-action-pypi-publish@v1.12.4
205208

206209
upload_pypi_mdanalysistests:
207210
if: |
@@ -216,18 +219,18 @@ jobs:
216219
runs-on: ubuntu-latest
217220
needs: [build_wheels, build_sdist, build_sdist_tests]
218221
steps:
219-
- uses: actions/download-artifact@v3
222+
- uses: actions/download-artifact@v4
220223
with:
221-
name: artifact
222224
path: dist
225+
merge-multiple: true
223226

224227
- name: move_test_dist
225228
run: |
226229
mkdir -p testsuite/dist
227230
mv dist/mdanalysistests-* testsuite/dist
228231
229232
- name: upload_tests
230-
uses: pypa/gh-action-pypi-publish@v1.11.0
233+
uses: pypa/gh-action-pypi-publish@v1.12.4
231234
with:
232235
packages_dir: testsuite/dist
233236

@@ -249,6 +252,9 @@ jobs:
249252
# Multiple deps don't like windows
250253
- os: windows-latest
251254
type: "FULL"
255+
# Chemfiles won't install over py3.13
256+
- python-version: "3.13"
257+
type: "FULL"
252258
env:
253259
MPLBACKEND: agg
254260

0 commit comments

Comments
 (0)