Skip to content

Commit df8cd59

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

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,16 @@ 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: ${{ fromJSON('{"x86": "x86", "x64": "x86_64", "arm64": "aarch64"}')[matrix.architecture] }}
210+
# windows and macos have no options, gnu is the only option for the archs
211+
LIBC: ${{ matrix.os == 'ubuntu-latest' ? 'gnu' : 'none' }}
203212
- name: Display Python version
204213
run: python -c "import sys; print(sys.version)"
205214
- name: Install tox

0 commit comments

Comments
 (0)