Skip to content

Commit

Permalink
chore(ci): Improve version specification for uv
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Dec 8, 2024
1 parent 76b809c commit 821f34b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,18 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
if: endsWith(matrix.python-version, 't')
run: |
uv python install ${{ matrix.python-version }}
uv python install ${IMPL}-${VERSION}-${OS%-*}-${ARCH}-${LIBC}
env:
IMPL: cpython
VERSION: ${{ matrix.python-version }}
# uv expects linux|macos|windows, we can drop the -* but need to rename ubuntu
OS: ${{ matrix.os == 'ubuntu-latest' && 'linux' || matrix.os }}
# uv expects x86, x86_64, aarch64 (among others)
ARCH: ${{ matrix.architecture == 'x64' && 'x86_64' ||
matrix.architecture == 'arm64' && 'aarch64' ||
matrix.architecture }}
# windows and macos have no options, gnu is the only option for the archs
LIBC: ${{ matrix.os == 'ubuntu-latest' && 'gnu' || 'none' }}
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install tox
Expand Down

0 comments on commit 821f34b

Please sign in to comment.