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 38129f7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,16 @@ 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: ${{ fromJSON('{"x86": "x86", "x64": "x86_64", "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 38129f7

Please sign in to comment.