Skip to content

Commit ec28ad8

Browse files
oschwaldclaude
andcommitted
Install uv with mise in CI
Replace astral-sh/setup-uv with jdx/mise-action. CI now runs the uv version in mise.lock, which is the version that local development uses. The release workflow disables the mise cache, as it did for the setup-uv cache (zizmor cache-poisoning). Dependabot does not update mise.lock. To update uv, run `mise upgrade uv` and commit mise.lock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent d8203bf commit ec28ad8

4 files changed

Lines changed: 55 additions & 6 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ jobs:
2222
submodules: true
2323
persist-credentials: false
2424

25-
- name: Install the latest version of uv
26-
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
25+
- name: Install uv
26+
uses: jdx/mise-action@82a612c5ab8bcda7cc5db6b7e81a8e7584c3dc6e # v5.2.3
2727
with:
28+
install_args: uv
2829
# Disable caching in the release workflow (zizmor cache-poisoning).
29-
enable-cache: false
30+
cache: false
3031

3132
- name: Build
3233
run: uv build

‎.github/workflows/test.yml‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,17 @@ jobs:
2222
with:
2323
submodules: true
2424
persist-credentials: false
25-
- name: Install the latest version of uv
26-
uses: astral-sh/setup-uv@07a047e608db84b3d8c06cd9a7c7dcc9c355c18e # v10.3.2
25+
- name: Install uv
26+
uses: jdx/mise-action@82a612c5ab8bcda7cc5db6b7e81a8e7584c3dc6e # v5.2.3
27+
with:
28+
install_args: uv
2729
- name: Install tox
28-
run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv --with tox-gh
30+
shell: bash
31+
run: |
32+
uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv --with tox-gh
33+
# mise-action, unlike setup-uv, does not add the uv tool bin
34+
# directory to PATH. Windows runners need it.
35+
uv tool dir --bin >> "$GITHUB_PATH"
2936
- name: Install Python
3037
if: matrix.env != '3.13'
3138
run: uv python install --python-preference only-managed ${{ matrix.env }}

‎mise.lock‎

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎mise.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ lockfile = true
33

44
[tools]
55
lychee = "latest"
6+
uv = "latest"
67

78
[tasks.check-links]
89
description = "Check links with lychee"

0 commit comments

Comments
 (0)