File tree Expand file tree Collapse file tree 2 files changed +89
-2
lines changed Expand file tree Collapse file tree 2 files changed +89
-2
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,47 @@ jobs:
214
214
name : artifacts-build-${{ matrix.arch }}-${{ matrix.python-version }}
215
215
path : ${{ env.PKGDIR }}/dist
216
216
217
+ test :
218
+ strategy :
219
+ matrix :
220
+ arch :
221
+ [
222
+ " x64" ,
223
+ " x86" ,
224
+ ]
225
+ python-version :
226
+ [
227
+ " 2.7" ,
228
+ " 3.5" ,
229
+ " 3.6" ,
230
+ " 3.7" ,
231
+ " 3.8" ,
232
+ " 3.9" ,
233
+ ]
234
+ max-parallel : 6
235
+ fail-fast : false
236
+ needs : repair
237
+ runs-on : ubuntu-latest
238
+ container : " pylegacy/${{ matrix.arch }}-python:${{ matrix.python-version }}-debian-5"
239
+ steps :
240
+ -
241
+ name : Checkout
242
+ uses : actions/checkout@v1
243
+ -
244
+ name : Download build artifacts
245
+ uses : actions/download-artifact@v1
246
+ with :
247
+ name : artifacts-build-${{ matrix.arch }}-${{ matrix.python-version }}
248
+ path : ${{ env.PKGDIR }}/dist
249
+ -
250
+ name : Install package
251
+ run : |
252
+ pip install ${{ env.PKGDIR }}/dist/*-manylinux1*.whl
253
+ -
254
+ name : Test package
255
+ run : |
256
+ python -c "from mpl_toolkits.basemap import Basemap"
257
+
217
258
upload :
218
259
strategy :
219
260
matrix :
@@ -233,7 +274,7 @@ jobs:
233
274
]
234
275
max-parallel : 1
235
276
if : startsWith(github.event.ref, 'refs/tags/v')
236
- needs : repair
277
+ needs : test
237
278
runs-on : ubuntu-latest
238
279
container : " pylegacy/${{ matrix.arch }}-python:${{ matrix.python-version }}-debian-5"
239
280
environment : PyPI
Original file line number Diff line number Diff line change @@ -155,6 +155,52 @@ jobs:
155
155
name : artifacts-build-${{ matrix.arch }}-${{ matrix.python-version }}
156
156
path : ${{ env.PKGDIR }}/dist
157
157
158
+ test :
159
+ strategy :
160
+ matrix :
161
+ arch :
162
+ [
163
+ " x64" ,
164
+ " x86" ,
165
+ ]
166
+ python-version :
167
+ [
168
+ " 2.7" ,
169
+ " 3.5" ,
170
+ " 3.6" ,
171
+ " 3.7" ,
172
+ " 3.8" ,
173
+ " 3.9" ,
174
+ ]
175
+ max-parallel : 6
176
+ fail-fast : false
177
+ needs : build
178
+ runs-on : windows-latest
179
+ steps :
180
+ -
181
+ name : Checkout
182
+ uses : actions/checkout@v1
183
+ -
184
+ name : Set Python
185
+ uses : actions/setup-python@v2
186
+ with :
187
+ architecture : ${{ matrix.arch }}
188
+ python-version : ${{ matrix.python-version }}
189
+ -
190
+ name : Download build artifacts
191
+ uses : actions/download-artifact@v1
192
+ with :
193
+ name : artifacts-build-${{ matrix.arch }}-${{ matrix.python-version }}
194
+ path : ${{ env.PKGDIR }}/dist
195
+ -
196
+ name : Install package
197
+ run : |
198
+ pip install (Get-Item ${{ env.PKGDIR }}/dist/*-win*.whl)
199
+ -
200
+ name : Test package
201
+ run : |
202
+ python -c "from mpl_toolkits.basemap import Basemap"
203
+
158
204
upload :
159
205
strategy :
160
206
matrix :
@@ -174,7 +220,7 @@ jobs:
174
220
]
175
221
max-parallel : 1
176
222
if : startsWith(github.event.ref, 'refs/tags/v')
177
- needs : build
223
+ needs : test
178
224
runs-on : windows-latest
179
225
environment : PyPI
180
226
steps :
You can’t perform that action at this time.
0 commit comments