1
- name : Build
2
-
3
1
on :
4
2
push :
5
3
paths :
17
15
18
16
jobs :
19
17
build_data :
20
- name : Build data packages
18
+ name : Build data
21
19
strategy :
22
20
matrix :
23
21
package : [basemap_data, basemap_data_hires]
@@ -30,21 +28,22 @@ jobs:
30
28
with :
31
29
python-version : " 3.9"
32
30
33
- - name : Build sdist and wheels
31
+ - name : Build data sdist and wheel
34
32
run : |
35
33
cd packages/${{ matrix.package }}
36
34
python -m pip install build wheel
37
35
python -m build
38
36
39
- - uses : actions/upload-artifact@v4
37
+ - name : Upload data sdist and wheel
38
+ uses : actions/upload-artifact@v4
40
39
with :
41
40
path : |
42
41
packages/${{ matrix.package }}/dist/*.tar.gz
43
42
packages/${{ matrix.package }}/dist/*.whl
44
43
name : dist-${{ matrix.package }}
45
44
46
45
build_sdist :
47
- name : Build basemap sdist
46
+ name : Build sdist
48
47
runs-on : ubuntu-22.04
49
48
steps :
50
49
- uses : actions/checkout@v4
@@ -54,19 +53,20 @@ jobs:
54
53
with :
55
54
python-version : " 3.9"
56
55
57
- - name : Build sdist
56
+ - name : Build basemap sdist
58
57
run : |
59
58
cd packages/basemap
60
59
python -m pip install build
61
60
python -m build --sdist
62
61
63
- - uses : actions/upload-artifact@v4
62
+ - name : Upload basemap sdist
63
+ uses : actions/upload-artifact@v4
64
64
with :
65
65
path : packages/basemap/dist/*.tar.gz
66
66
name : dist-basemap-sdist
67
67
68
68
build_wheels :
69
- name : Build basemap wheels
69
+ name : Build wheels
70
70
needs : [build_data, build_sdist]
71
71
strategy :
72
72
matrix :
93
93
name : dist-basemap-sdist
94
94
path : ./sdist/
95
95
96
- - name : Extract sdist (Linux/macOS)
96
+ - name : Extract basemap sdist (Linux/macOS)
97
97
if : runner.os != 'Windows'
98
98
shell : bash
99
99
run : |
@@ -112,7 +112,7 @@ jobs:
112
112
# Set the environment variable
113
113
echo "SDIST_DIR=$(pwd)/${EXTRACTED_DIR}" >> $GITHUB_ENV
114
114
115
- - name : Extract sdist (Windows)
115
+ - name : Extract basemap sdist (Windows)
116
116
if : runner.os == 'Windows'
117
117
shell : pwsh
118
118
run : |
@@ -132,7 +132,7 @@ jobs:
132
132
# Set the environment variable
133
133
echo "SDIST_DIR=$extractedDir" | Out-File -FilePath $env:GITHUB_ENV -Append
134
134
135
- - name : Build wheels from sdist
135
+ - name : Build basemap wheels from sdist
136
136
137
137
env :
138
138
CIBW_ARCHS : " native"
@@ -160,7 +160,8 @@ jobs:
160
160
# folder and we cannot guarantee that wheels can be built
161
161
# from the sdist.
162
162
163
- - uses : actions/upload-artifact@v4
163
+ - name : Upload basemap wheels
164
+ uses : actions/upload-artifact@v4
164
165
with :
165
166
path : dist/*.whl
166
167
name : dist-basemap-wheels-${{ matrix.os }}
@@ -170,7 +171,8 @@ jobs:
170
171
needs : [build_data, build_sdist, build_wheels]
171
172
runs-on : ubuntu-22.04
172
173
steps :
173
- - uses : actions/download-artifact@v4
174
+ - name : Download basemap and data packages
175
+ uses : actions/download-artifact@v4
174
176
with :
175
177
path : dist
176
178
pattern : " dist-*"
@@ -188,8 +190,8 @@ jobs:
188
190
python -m twine check dist/*.whl
189
191
190
192
docs :
191
- name : Build documentation
192
- needs : [build_wheels ]
193
+ name : Build docs
194
+ needs : [check ]
193
195
runs-on : ubuntu-22.04
194
196
steps :
195
197
- uses : actions/checkout@v4
@@ -206,14 +208,14 @@ jobs:
206
208
pattern : " dist-basemap_data*"
207
209
merge-multiple : true
208
210
209
- - name : Download basemap wheel for Linux
211
+ - name : Download basemap wheels for Linux
210
212
uses : actions/download-artifact@v4
211
213
with :
212
214
path : ./wheels/
213
215
pattern : " dist-basemap-wheels-ubuntu-*"
214
216
merge-multiple : true
215
217
216
- - name : Install packages
218
+ - name : Install basemap and data packages
217
219
run : |
218
220
# Get Python version.
219
221
IMPL=cp$(python -c "import sys; print('{0}{1}'.format(*sys.version_info[:2]))")
@@ -253,9 +255,9 @@ jobs:
253
255
path : packages/basemap/public
254
256
255
257
pages :
256
- name : Deploy documentation
258
+ name : Deploy docs
257
259
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
258
- needs : [docs, check ]
260
+ needs : [docs]
259
261
runs-on : ubuntu-22.04
260
262
environment :
261
263
name : github-pages
@@ -275,7 +277,8 @@ jobs:
275
277
environment : PyPI
276
278
if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
277
279
steps :
278
- - uses : actions/download-artifact@v4
280
+ - name : Download basemap and data packages
281
+ uses : actions/download-artifact@v4
279
282
with :
280
283
path : dist
281
284
pattern : " dist-*"
0 commit comments