4848 # When set to true, GitHub cancels all in-progress jobs if any matrix job fails.
4949 fail-fast : false
5050 matrix :
51- os : [ ubuntu-latest ]
51+ os : [ ubuntu-latest, windows-latest, macos-latest ]
5252 # This must be kept in sync with pyproject.toml and mooplot
5353 python-version : ['3.10', '3.11', '3.12']
5454 include :
@@ -74,15 +74,15 @@ jobs:
7474 run : tox
7575 working-directory : python
7676
77- build-package :
77+ build_sdist :
7878 timeout-minutes : 10
7979 needs : run-tests
8080 if : " ! contains(github.event.head_commit.message, '[skip ci]')"
8181 runs-on : ${{ matrix.os }}
8282 strategy :
8383 matrix :
8484 python-version : ["3.10"]
85- os : [ubuntu-latest, windows-latest, macos-latest ]
85+ os : [ubuntu-latest]
8686
8787 steps :
8888 - name : Checkout sources
@@ -106,11 +106,11 @@ jobs:
106106 uses : actions/upload-artifact@v4
107107 with :
108108 name : moocore-dist-${{ matrix.os }}-${{ matrix.python-version }}
109- path : python/dist/
109+ path : python/dist/*.tar.gz
110110
111111 build-doc :
112112 timeout-minutes : 10
113- needs : build-package
113+ needs : build_sdist
114114 permissions :
115115 contents : write
116116 concurrency : web # Recommended if you intend to make multiple deployments in quick succession.
@@ -161,7 +161,7 @@ jobs:
161161
162162 coverage :
163163 timeout-minutes : 15
164- needs : build-package
164+ needs : build_sdist
165165 if : " ! contains(github.event.head_commit.message, '[skip ci]')"
166166 name : Coverage ${{ matrix.os }} (${{ matrix.python-version }})
167167 runs-on : ${{ matrix.os }}
@@ -207,7 +207,7 @@ jobs:
207207 strategy :
208208 fail-fast : false
209209 matrix :
210- os : [ubuntu-22.04, windows-latest, macos-13, macos-14 ]
210+ os : [ubuntu-22.04, windows-latest, macos-latest ]
211211 python-version : ['3.10']
212212
213213 steps :
@@ -237,9 +237,11 @@ jobs:
237237
238238 upload_pypi :
239239 name : Publish Python 🐍 distribution 📦 to PyPI
240- needs : [wheels, build-package ]
240+ needs : [wheels, build_sdist ]
241241 runs-on : ubuntu-latest
242- environment : pypi
242+ environment :
243+ name : pypi
244+ url : https://pypi.org/p/moocore
243245 permissions :
244246 id-token : write
245247 if : github.event_name == 'release' && github.event.action == 'published'
@@ -254,7 +256,8 @@ jobs:
254256 merge-multiple : true
255257
256258 - uses : pypa/gh-action-pypi-publish@release/v1
257- # with:
259+ with :
260+ verbose : true
258261 # To test: repository-url: https://test.pypi.org/legacy/
259262
260263 upload :
0 commit comments