From 38129f7588156927b2876b989222d541e0f88fc3 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 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c99b4367b..4b255fc1c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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