Skip to content

Commit 76c56cc

Browse files
committed
ci: select Python with setup-uv
1 parent 5b0a44f commit 76c56cc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎.github/workflows/tests.yaml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212

1313
env:
1414
UV_LOCKED: 1
15+
UV_PYTHON_PREFERENCE: only-managed
1516

1617
permissions:
1718
contents: read
@@ -34,9 +35,8 @@ jobs:
3435
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
3536
with:
3637
version: "0.12.13"
38+
python-version: ${{ matrix.python }}
3739
enable-cache: true
38-
- name: Install Python ${{ matrix.python }}
39-
run: uv python install ${{ matrix.python }}
4040
- name: Run tests
4141
run: uv run pytest --showlocals
4242

@@ -52,6 +52,7 @@ jobs:
5252
uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0
5353
with:
5454
version: "0.12.13"
55+
python-version: "3.11"
5556
enable-cache: true
5657
- name: Install minimum dependencies
5758
run: uv sync

0 commit comments

Comments
 (0)