Skip to content

Commit 3014049

Browse files
committed
Add simple test job for basemap
1 parent 540905e commit 3014049

File tree

2 files changed

+89
-2
lines changed

2 files changed

+89
-2
lines changed

.github/workflows/basemap-for-manylinux.yml

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,47 @@ jobs:
214214
name: artifacts-build-${{ matrix.arch }}-${{ matrix.python-version }}
215215
path: ${{ env.PKGDIR }}/dist
216216

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+
217258
upload:
218259
strategy:
219260
matrix:
@@ -233,7 +274,7 @@ jobs:
233274
]
234275
max-parallel: 1
235276
if: startsWith(github.event.ref, 'refs/tags/v')
236-
needs: repair
277+
needs: test
237278
runs-on: ubuntu-latest
238279
container: "pylegacy/${{ matrix.arch }}-python:${{ matrix.python-version }}-debian-5"
239280
environment: PyPI

.github/workflows/basemap-for-windows.yml

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,52 @@ jobs:
155155
name: artifacts-build-${{ matrix.arch }}-${{ matrix.python-version }}
156156
path: ${{ env.PKGDIR }}/dist
157157

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+
158204
upload:
159205
strategy:
160206
matrix:
@@ -174,7 +220,7 @@ jobs:
174220
]
175221
max-parallel: 1
176222
if: startsWith(github.event.ref, 'refs/tags/v')
177-
needs: build
223+
needs: test
178224
runs-on: windows-latest
179225
environment: PyPI
180226
steps:

0 commit comments

Comments
 (0)