48
48
# When set to true, GitHub cancels all in-progress jobs if any matrix job fails.
49
49
fail-fast : false
50
50
matrix :
51
- os : [ ubuntu-latest ]
51
+ os : [ ubuntu-latest, windows-latest, macos-latest ]
52
52
# This must be kept in sync with pyproject.toml and mooplot
53
53
python-version : ['3.10', '3.11', '3.12']
54
54
include :
@@ -74,15 +74,15 @@ jobs:
74
74
run : tox
75
75
working-directory : python
76
76
77
- build-package :
77
+ build_sdist :
78
78
timeout-minutes : 10
79
79
needs : run-tests
80
80
if : " ! contains(github.event.head_commit.message, '[skip ci]')"
81
81
runs-on : ${{ matrix.os }}
82
82
strategy :
83
83
matrix :
84
84
python-version : ["3.10"]
85
- os : [ubuntu-latest, windows-latest, macos-latest ]
85
+ os : [ubuntu-latest]
86
86
87
87
steps :
88
88
- name : Checkout sources
@@ -106,11 +106,11 @@ jobs:
106
106
uses : actions/upload-artifact@v4
107
107
with :
108
108
name : moocore-dist-${{ matrix.os }}-${{ matrix.python-version }}
109
- path : python/dist/
109
+ path : python/dist/*.tar.gz
110
110
111
111
build-doc :
112
112
timeout-minutes : 10
113
- needs : build-package
113
+ needs : build_sdist
114
114
permissions :
115
115
contents : write
116
116
concurrency : web # Recommended if you intend to make multiple deployments in quick succession.
@@ -161,7 +161,7 @@ jobs:
161
161
162
162
coverage :
163
163
timeout-minutes : 15
164
- needs : build-package
164
+ needs : build_sdist
165
165
if : " ! contains(github.event.head_commit.message, '[skip ci]')"
166
166
name : Coverage ${{ matrix.os }} (${{ matrix.python-version }})
167
167
runs-on : ${{ matrix.os }}
@@ -207,7 +207,7 @@ jobs:
207
207
strategy :
208
208
fail-fast : false
209
209
matrix :
210
- os : [ubuntu-22.04, windows-latest, macos-13, macos-14 ]
210
+ os : [ubuntu-22.04, windows-latest, macos-latest ]
211
211
python-version : ['3.10']
212
212
213
213
steps :
@@ -237,9 +237,11 @@ jobs:
237
237
238
238
upload_pypi :
239
239
name : Publish Python 🐍 distribution 📦 to PyPI
240
- needs : [wheels, build-package ]
240
+ needs : [wheels, build_sdist ]
241
241
runs-on : ubuntu-latest
242
- environment : pypi
242
+ environment :
243
+ name : pypi
244
+ url : https://pypi.org/p/moocore
243
245
permissions :
244
246
id-token : write
245
247
if : github.event_name == 'release' && github.event.action == 'published'
@@ -254,7 +256,8 @@ jobs:
254
256
merge-multiple : true
255
257
256
258
- uses : pypa/gh-action-pypi-publish@release/v1
257
- # with:
259
+ with :
260
+ verbose : true
258
261
# To test: repository-url: https://test.pypi.org/legacy/
259
262
260
263
upload :
0 commit comments