Skip to content

Commit c3bc549

Browse files
committed
chore(ci): Restore custom installation for free-threaded builds
1 parent 59f6862 commit c3bc549

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,29 @@ jobs:
202202
- name: Install the latest version of uv
203203
uses: astral-sh/setup-uv@v6
204204
- name: Set up Python ${{ matrix.python-version }}
205+
if: "!endsWith(matrix.python-version, 't')"
205206
uses: actions/setup-python@v5
206207
with:
207208
python-version: ${{ matrix.python-version }}
208209
architecture: ${{ matrix.architecture }}
209210
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' }}
210228
- name: Display Python version
211229
run: python -c "import sys; print(sys.version)"
212230
- name: Install tox

0 commit comments

Comments
 (0)