diff --git a/.github/workflows/address-sanitizer.yml b/.github/workflows/address-sanitizer.yml index b67c600..4292531 100644 --- a/.github/workflows/address-sanitizer.yml +++ b/.github/workflows/address-sanitizer.yml @@ -23,8 +23,10 @@ jobs: submodules: true persist-credentials: false - - name: Install the latest version of uv - uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2 + - name: Install uv + uses: jdx/mise-action@82a612c5ab8bcda7cc5db6b7e81a8e7584c3dc6e # v5.2.3 + with: + install_args: uv - name: Install packages run: | diff --git a/.github/workflows/clang-analyzer.yml b/.github/workflows/clang-analyzer.yml index 4d539d8..aed6987 100644 --- a/.github/workflows/clang-analyzer.yml +++ b/.github/workflows/clang-analyzer.yml @@ -22,8 +22,10 @@ jobs: - name: Install clang-tools run: sudo apt install clang-tools - - name: Install the latest version of uv - uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2 + - name: Install uv + uses: jdx/mise-action@82a612c5ab8bcda7cc5db6b7e81a8e7584c3dc6e # v5.2.3 + with: + install_args: uv - name: Build and run analyzer # We exclude extension/libmaxminddb/ as libmaxminddb has its own workflow diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 67d62fa..27ac6e4 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -30,8 +30,10 @@ jobs: with: languages: python, cpp - - name: Install the latest version of uv - uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2 + - name: Install uv + uses: jdx/mise-action@82a612c5ab8bcda7cc5db6b7e81a8e7584c3dc6e # v5.2.3 + with: + install_args: uv - run: uv build env: diff --git a/.github/workflows/test-libmaxminddb.yml b/.github/workflows/test-libmaxminddb.yml index e1aab43..2f7175a 100644 --- a/.github/workflows/test-libmaxminddb.yml +++ b/.github/workflows/test-libmaxminddb.yml @@ -31,8 +31,10 @@ jobs: submodules: true persist-credentials: false - - name: Install the latest version of uv - uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2 + - name: Install uv + uses: jdx/mise-action@82a612c5ab8bcda7cc5db6b7e81a8e7584c3dc6e # v5.2.3 + with: + install_args: uv - name: Install tox run: uv tool install --python-preference only-managed --python 3.14 tox --with tox-uv --with tox-gh diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 240502a..db77162 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,10 +22,17 @@ jobs: with: submodules: true persist-credentials: false - - name: Install the latest version of uv - uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2 + - name: Install uv + uses: jdx/mise-action@82a612c5ab8bcda7cc5db6b7e81a8e7584c3dc6e # v5.2.3 + with: + install_args: uv - name: Install tox - run: uv tool install --python-preference only-managed --python 3.14 tox --with tox-uv --with tox-gh + shell: bash + run: | + uv tool install --python-preference only-managed --python 3.14 tox --with tox-uv --with tox-gh + # mise-action, unlike setup-uv, does not add the uv tool bin + # directory to PATH. Windows runners need it. + uv tool dir --bin >> "$GITHUB_PATH" - name: Install Python if: matrix.env != '3.14' run: uv python install --python-preference only-managed ${{ matrix.env }} diff --git a/mise.lock b/mise.lock index 156e912..3a0e4d5 100644 --- a/mise.lock +++ b/mise.lock @@ -27,3 +27,43 @@ url = "https://github.com/lycheeverse/lychee/releases/download/lychee-v0.23.0/ly [tools.lychee."platforms.windows-x64"] checksum = "sha256:0fda7ff0a60c0250939fc25361c2d4e6e7853c31c996733fdd5a1dd760bcb824" url = "https://github.com/lycheeverse/lychee/releases/download/lychee-v0.23.0/lychee-x86_64-windows.exe" + +[[tools.uv]] +version = "0.13.7" +backend = "aqua:astral-sh/uv" + +[tools.uv."platforms.linux-arm64"] +checksum = "sha256:71279f8d3c67241e807b9d8db872d1bf541579fb9f08b7d1eb1682196d1e57dc" +url = "https://github.com/astral-sh/uv/releases/download/0.13.7/uv-aarch64-unknown-linux-gnu.tar.gz" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/704009469" +provenance = "github-attestations" + +[tools.uv."platforms.linux-arm64-musl"] +checksum = "sha256:2d3ec076a0c4c0e8250bb6418c44080828b544f1a3be0b6e46adf9fb6923de45" +url = "https://github.com/astral-sh/uv/releases/download/0.13.7/uv-aarch64-unknown-linux-musl.tar.gz" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/704009487" +provenance = "github-attestations" + +[tools.uv."platforms.linux-x64"] +checksum = "sha256:c5221ff41b7892bfc223543883600125f6a47fe845093e0f5bdff4f359196d83" +url = "https://github.com/astral-sh/uv/releases/download/0.13.7/uv-x86_64-unknown-linux-gnu.tar.gz" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/704009823" +provenance = "github-attestations" + +[tools.uv."platforms.linux-x64-musl"] +checksum = "sha256:287491da03f2a785c70fa75b13e1f849918c2f2b5415fe84876b8214eeb792f9" +url = "https://github.com/astral-sh/uv/releases/download/0.13.7/uv-x86_64-unknown-linux-musl.tar.gz" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/704009859" +provenance = "github-attestations" + +[tools.uv."platforms.macos-arm64"] +checksum = "sha256:81b811b57e4624df7ed3aac148e0359100d9962f3d9dce00aec533dc2e086731" +url = "https://github.com/astral-sh/uv/releases/download/0.13.7/uv-aarch64-apple-darwin.tar.gz" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/704009442" +provenance = "github-attestations" + +[tools.uv."platforms.windows-x64"] +checksum = "sha256:0cdc5b38fe5a8168ed6a25814f5ba43c21d313dd3187314fccb37b7cec46e021" +url = "https://github.com/astral-sh/uv/releases/download/0.13.7/uv-x86_64-pc-windows-msvc.zip" +url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/704009796" +provenance = "github-attestations" diff --git a/mise.toml b/mise.toml index 10b7812..7aa11a5 100644 --- a/mise.toml +++ b/mise.toml @@ -3,6 +3,7 @@ lockfile = true [tools] lychee = "latest" +uv = "latest" [tasks.check-links] description = "Check links with lychee"