Skip to content

Commit 821f34b

Browse files
committed
chore(ci): Improve version specification for uv
1 parent 76b809c commit 821f34b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,18 @@ jobs:
199199
- name: Set up Python ${{ matrix.python-version }}
200200
if: endsWith(matrix.python-version, 't')
201201
run: |
202-
uv python install ${{ matrix.python-version }}
202+
uv python install ${IMPL}-${VERSION}-${OS%-*}-${ARCH}-${LIBC}
203+
env:
204+
IMPL: cpython
205+
VERSION: ${{ matrix.python-version }}
206+
# uv expects linux|macos|windows, we can drop the -* but need to rename ubuntu
207+
OS: ${{ matrix.os == 'ubuntu-latest' && 'linux' || matrix.os }}
208+
# uv expects x86, x86_64, aarch64 (among others)
209+
ARCH: ${{ matrix.architecture == 'x64' && 'x86_64' ||
210+
matrix.architecture == 'arm64' && 'aarch64' ||
211+
matrix.architecture }}
212+
# windows and macos have no options, gnu is the only option for the archs
213+
LIBC: ${{ matrix.os == 'ubuntu-latest' && 'gnu' || 'none' }}
203214
- name: Display Python version
204215
run: python -c "import sys; print(sys.version)"
205216
- name: Install tox

0 commit comments

Comments
 (0)