From 41ef8dbf081e82701cd8a331712d6500f76097c5 Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Sun, 8 Dec 2024 18:25:43 -0500 Subject: [PATCH] chore(ci): Improve version specification for uv --- .github/workflows/test.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c99b4367b..b9e05140d 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