@@ -202,11 +202,29 @@ jobs:
202
202
- name : Install the latest version of uv
203
203
uses : astral-sh/setup-uv@v6
204
204
- name : Set up Python ${{ matrix.python-version }}
205
+ if : " !endsWith(matrix.python-version, 't')"
205
206
uses : actions/setup-python@v5
206
207
with :
207
208
python-version : ${{ matrix.python-version }}
208
209
architecture : ${{ matrix.architecture }}
209
210
allow-prereleases : true
211
+ - name : Set up Python ${{ matrix.python-version }}
212
+ if : endsWith(matrix.python-version, 't')
213
+ run : |
214
+ echo "UV_PYTHON=${IMPL}-${VERSION}-${OS%-*}-${ARCH}-${LIBC}" >> $GITHUB_ENV
215
+ source $GITHUB_ENV
216
+ uv python install $UV_PYTHON
217
+ env :
218
+ IMPL : cpython
219
+ VERSION : ${{ matrix.python-version }}
220
+ # uv expects linux|macos|windows, we can drop the -* but need to rename ubuntu
221
+ OS : ${{ matrix.os == 'ubuntu-latest' && 'linux' || matrix.os }}
222
+ # uv expects x86, x86_64, aarch64 (among others)
223
+ ARCH : ${{ matrix.architecture == 'x64' && 'x86_64' ||
224
+ matrix.architecture == 'arm64' && 'aarch64' ||
225
+ matrix.architecture }}
226
+ # windows and macos have no options, gnu is the only option for the archs
227
+ LIBC : ${{ matrix.os == 'ubuntu-latest' && 'gnu' || 'none' }}
210
228
- name : Display Python version
211
229
run : python -c "import sys; print(sys.version)"
212
230
- name : Install tox
0 commit comments