Skip to content

Commit a836f72

Browse files
authored
Merge pull request #540 from maxmind/greg/setup-uv-latest-known
Install uv with mise in CI
2 parents 976fd87 + e5770d5 commit a836f72

6 files changed

Lines changed: 36 additions & 73 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 with mise
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: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ 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
27-
- name: Install tox
28-
run: uv tool install --python-preference only-managed --python 3.13 tox --with tox-uv --with tox-gh
25+
- name: Install uv with mise
26+
uses: jdx/mise-action@82a612c5ab8bcda7cc5db6b7e81a8e7584c3dc6e # v5.2.3
27+
with:
28+
install_args: uv
2929
- name: Install Python
3030
if: matrix.env != '3.13'
3131
run: uv python install --python-preference only-managed ${{ matrix.env }}
3232
- name: Run test suite
33-
run: tox run --skip-missing-interpreters false
33+
run: uvx --python-preference only-managed --python 3.13 --with tox-uv-bare --with tox-gh tox run --skip-missing-interpreters false
3434
env:
3535
TOX_GH_MAJOR_MINOR: ${{ matrix.env }}

‎CLAUDE.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ Breaking changes when adding required parameters.
368368
### Setup
369369

370370
```bash
371-
# Install uv if not already installed
372-
curl -LsSf https://astral.sh/uv/install.sh | sh
371+
# Install the uv version in mise.lock, which CI also uses
372+
mise install uv
373373

374374
# Install all dependencies including dev and lint groups
375375
uv sync --all-groups

‎mise.lock‎

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

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ classifiers = [
3434
dev = [
3535
"pytest>=9.1.1",
3636
"pytest-httpserver>=1.0.10",
37-
"tox-uv>=1.29.0",
37+
"tox-uv-bare>=1.32.0",
3838
]
3939
lint = [
4040
"mypy>=1.15.0",

‎uv.lock‎

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

0 commit comments

Comments
 (0)