@@ -59,27 +59,35 @@ jobs:
59
59
-
60
60
name : Install lint requirements
61
61
run : |
62
- cd ${{ env. PKGDIR } }
62
+ cd ${PKGDIR}
63
63
pip install -r requirements-lint.txt
64
+ env :
65
+ PKGDIR : ${{ env.PKGDIR }}
64
66
-
65
67
name : Install library requirements
66
68
run : |
67
- cd ${{ env. PKGDIR } }
69
+ cd ${PKGDIR}
68
70
pip install -r requirements.txt
71
+ env :
72
+ PKGDIR : ${{ env.PKGDIR }}
69
73
-
70
74
name : Run Flake8
71
75
run : |
72
- cd ${{ env. PKGDIR } }
76
+ cd ${PKGDIR}
73
77
if [ -x "$(command -v flake8)" ]; then
74
78
flake8 src/mpl_toolkits/basemap/cm.py src/mpl_toolkits/basemap/diagnostic.py src/mpl_toolkits/basemap/proj.py src/mpl_toolkits/basemap/solar.py test;
75
79
fi
80
+ env :
81
+ PKGDIR : ${{ env.PKGDIR }}
76
82
-
77
83
name : Run PyLint
78
84
run : |
79
- cd ${{ env. PKGDIR } }
85
+ cd ${PKGDIR}
80
86
if [ -x "$(command -v pylint)" ]; then
81
87
pylint src/mpl_toolkits/basemap/cm.py src/mpl_toolkits/basemap/diagnostic.py src/mpl_toolkits/basemap/proj.py src/mpl_toolkits/basemap/solar.py test;
82
88
fi
89
+ env :
90
+ PKGDIR : ${{ env.PKGDIR }}
83
91
84
92
build-geos :
85
93
strategy :
@@ -121,8 +129,10 @@ jobs:
121
129
-
122
130
name : Build GEOS from source
123
131
run : |
124
- cd ${{ env. PKGDIR } }
132
+ cd ${PKGDIR}
125
133
python -c "import utils; utils.GeosLibrary('3.6.5').build('extern', njobs=16)"
134
+ env :
135
+ PKGDIR : ${{ env.PKGDIR }}
126
136
-
127
137
name : Upload GEOS artifacts
128
138
uses : actions/upload-artifact@v1
@@ -193,17 +203,19 @@ jobs:
193
203
name : Build wheel
194
204
run : |
195
205
sitepkgdir=$(pip show numpy 2>/dev/null | grep Location: | cut -d' ' -f2)
196
- export GEOS_DIR="${GITHUB_WORKSPACE}/${{ env. PKGDIR } }/extern"
206
+ export GEOS_DIR="${GITHUB_WORKSPACE}/${PKGDIR}/extern"
197
207
export NUMPY_INCLUDE_PATH=${sitepkgdir}/numpy/core/include
198
208
case "${{ matrix.python-version }}" in
199
209
3.11|3.12)
200
210
kwds="--no-build-isolation"
201
211
pip install setuptools wheel "cython >= 0.29, < 3.1"
202
212
;;
203
213
esac
204
- cd ${{ env. PKGDIR } }
214
+ cd ${PKGDIR}
205
215
python setup.py sdist
206
216
pip wheel -w dist --no-deps ${kwds} dist/*.zip
217
+ env :
218
+ PKGDIR : ${{ env.PKGDIR }}
207
219
-
208
220
name : Upload build artifacts
209
221
uses : actions/upload-artifact@v1
@@ -246,9 +258,11 @@ jobs:
246
258
-
247
259
name : Repair wheel
248
260
run : |
249
- cd ${{ env. PKGDIR } }
261
+ cd ${PKGDIR}
250
262
export LD_LIBRARY_PATH="$(readlink -f extern/lib)"
251
263
auditwheel repair -w dist dist/*.whl
264
+ env :
265
+ PKGDIR : ${{ env.PKGDIR }}
252
266
-
253
267
name : Upload build artifacts
254
268
uses : actions/upload-artifact@v1
@@ -296,21 +310,27 @@ jobs:
296
310
-
297
311
name : Install test requirements
298
312
run : |
299
- cd ${{ env. PKGDIR } }
313
+ cd ${PKGDIR}
300
314
pip install -r requirements-test.txt
315
+ env :
316
+ PKGDIR : ${{ env.PKGDIR }}
301
317
-
302
318
name : Install package (full)
303
319
run : |
304
- whlpath=$(ls ${{ env. PKGDIR } }/dist/*-manylinux1*.whl | head -n1)
320
+ whlpath=$(ls ${PKGDIR}/dist/*-manylinux1*.whl | head -n1)
305
321
pip install "${whlpath}[owslib,pillow]"
322
+ env :
323
+ PKGDIR : ${{ env.PKGDIR }}
306
324
-
307
325
name : Test package
308
326
run : |
309
- cd ${{ env. PKGDIR } }
327
+ cd ${PKGDIR}
310
328
export COVERAGE_FILE=.coverage.${{ matrix.python-version }}
311
329
python -m pytest \
312
330
--cov="mpl_toolkits.basemap" --cov-report=term \
313
331
--ignore=dist --ignore=build
332
+ env :
333
+ PKGDIR : ${{ env.PKGDIR }}
314
334
-
315
335
name : Upload test artifacts
316
336
uses : actions/upload-artifact@v1
@@ -337,15 +357,19 @@ jobs:
337
357
-
338
358
name : Install test requirements
339
359
run : |
340
- cd ${{ env. PKGDIR } }
360
+ cd ${PKGDIR}
341
361
pip install -r requirements-test.txt
362
+ env :
363
+ PKGDIR : ${{ env.PKGDIR }}
342
364
-
343
365
name : Compute combined coverage
344
366
run : |
345
- cd ${{ env. PKGDIR } }
367
+ cd ${PKGDIR}
346
368
coverage combine
347
369
coverage html
348
370
coverage report
371
+ env :
372
+ PKGDIR : ${{ env.PKGDIR }}
349
373
-
350
374
name : Upload coverage artifacts
351
375
uses : actions/upload-artifact@v1
@@ -367,8 +391,10 @@ jobs:
367
391
-
368
392
name : Install doc requirements
369
393
run : |
370
- cd ${{ env. PKGDIR } }
394
+ cd ${PKGDIR}
371
395
pip install -r requirements-doc.txt
396
+ env :
397
+ PKGDIR : ${{ env.PKGDIR }}
372
398
-
373
399
name : Download build artifacts
374
400
uses : actions/download-artifact@v1
@@ -378,13 +404,17 @@ jobs:
378
404
-
379
405
name : Install package
380
406
run : |
381
- cd ${{ env. PKGDIR } }
407
+ cd ${PKGDIR}
382
408
pip install dist/*-manylinux1*.whl
409
+ env :
410
+ PKGDIR : ${{ env.PKGDIR }}
383
411
-
384
412
name : Run sphinx
385
413
run : |
386
- cd ${{ env. PKGDIR } }
414
+ cd ${PKGDIR}
387
415
python -m sphinx doc/source public
416
+ env :
417
+ PKGDIR : ${{ env.PKGDIR }}
388
418
-
389
419
name : Upload docs artifacts
390
420
uses : actions/upload-artifact@v1
@@ -441,15 +471,18 @@ jobs:
441
471
name : Check distributables
442
472
run : |
443
473
python -m twine check \
444
- ${{ env.PKGDIR }}/dist/*.zip \
445
- ${{ env.PKGDIR }}/dist/*-manylinux1*.whl
474
+ ${PKGDIR}/dist/*.zip \
475
+ ${PKGDIR}/dist/*-manylinux1*.whl
476
+ env :
477
+ PKGDIR : ${{ env.PKGDIR }}
446
478
-
447
479
name : Upload distributables
448
480
env :
449
481
TWINE_USERNAME : __token__
450
- TWINE_PASSWORD : " ${{ secrets.PYPI_TOKEN }}"
451
- TWINE_REPOSITORY_URL : " ${{ secrets.PYPI_REPOSITORY_URL }}"
482
+ TWINE_PASSWORD : ${{ secrets.PYPI_TOKEN }}
483
+ TWINE_REPOSITORY_URL : ${{ secrets.PYPI_REPOSITORY_URL }}
484
+ PKGDIR : ${{ env.PKGDIR }}
452
485
run : |
453
486
python -m twine upload --skip-existing \
454
- ${{ env. PKGDIR } }/dist/*.zip \
455
- ${{ env. PKGDIR } }/dist/*-manylinux1*.whl
487
+ ${PKGDIR}/dist/*.zip \
488
+ ${PKGDIR}/dist/*-manylinux1*.whl
0 commit comments