@@ -105,54 +105,84 @@ jobs:
105105 strategy :
106106 fail-fast : false
107107 matrix :
108- # Define default values
109- runner : [ubuntu-latest]
110- platform-name : [linux-x86_64]
111- is-musl : [false]
112- python-version : ["3.12"]
113- test-type : [standard]
114-
115- # Define the matrix combinations
116- include :
108+ config :
117109 # Platform tests with Python 3.12
118110 - name : Linux x86_64
119- # Using defaults
111+ runner : ubuntu-latest
112+ platform-name : linux-x86_64
113+ is-musl : false
114+ python-version : " 3.12"
115+ test-type : standard
120116
121117 - name : Linux musl
122118 runner : ubuntu-22.04
123119 platform-name : linux-musl-x86_64
124120 is-musl : true
121+ python-version : " 3.12"
122+ test-type : standard
125123
126124 - name : Windows
127125 runner : windows-latest
128126 platform-name : windows-x64
127+ is-musl : false
128+ python-version : " 3.12"
129+ test-type : standard
129130
130131 - name : macOS x86_64
131132 runner : macos-13
132133 platform-name : macos-x86_64
134+ is-musl : false
135+ python-version : " 3.12"
136+ test-type : standard
133137
134138 - name : macOS ARM64
135139 runner : macos-14
136140 platform-name : macos-arm64
141+ is-musl : false
142+ python-version : " 3.12"
143+ test-type : standard
137144
138145 # Additional Python versions for Linux x86_64
139146 - name : Python 3.8
147+ runner : ubuntu-latest
148+ platform-name : linux-x86_64
149+ is-musl : false
140150 python-version : " 3.8"
151+ test-type : standard
141152
142153 - name : Python 3.9
154+ runner : ubuntu-latest
155+ platform-name : linux-x86_64
156+ is-musl : false
143157 python-version : " 3.9"
158+ test-type : standard
144159
145160 - name : Python 3.10
161+ runner : ubuntu-latest
162+ platform-name : linux-x86_64
163+ is-musl : false
146164 python-version : " 3.10"
165+ test-type : standard
147166
148167 - name : Python 3.11
168+ runner : ubuntu-latest
169+ platform-name : linux-x86_64
170+ is-musl : false
149171 python-version : " 3.11"
172+ test-type : standard
150173
151174 - name : Python 3.13
175+ runner : ubuntu-latest
176+ platform-name : linux-x86_64
177+ is-musl : false
152178 python-version : " 3.13"
179+ test-type : standard
153180
154181 # Minimum dependencies test
155182 - name : Min Dependencies
183+ runner : ubuntu-latest
184+ platform-name : linux-x86_64
185+ is-musl : false
156186 python-version : " 3.8"
157187 test-type : min_deps
158188 steps :
@@ -201,22 +231,22 @@ jobs:
201231 with :
202232 subject-path : " dist/*"
203233
204- # Publish to PyPI when tagged or requested
205- - name : Publish to PyPI
206- if : ${{ github.event.inputs.publish_to_pypi }}
234+ # Publish to TestPyPI
235+ - name : Publish to TestPyPI
207236 uses : PyO3/maturin-action@v1
208237 env :
209- MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
238+ MATURIN_PYPI_TOKEN : ${{ secrets.TEST_PYPI_API_TOKEN }}
239+ MATURIN_REPOSITORY : testpypi
210240 with :
211241 command : upload
212242 args : --non-interactive --skip-existing dist/*
213243
214- # Otherwise publish to TestPyPI
215- - name : Publish to TestPyPI
244+ # Only publish to PyPI if the publish_to_pypi input is true
245+ - name : Publish to PyPI
246+ if : ${{ github.event.inputs.publish_to_pypi }}
216247 uses : PyO3/maturin-action@v1
217248 env :
218- MATURIN_PYPI_TOKEN : ${{ secrets.TEST_PYPI_API_TOKEN }}
219- MATURIN_REPOSITORY : testpypi
249+ MATURIN_PYPI_TOKEN : ${{ secrets.PYPI_API_TOKEN }}
220250 with :
221251 command : upload
222252 args : --non-interactive --skip-existing dist/*
0 commit comments