diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c99b4367b..1effca4d7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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