Skip to content

Commit 4ba00ef

Browse files
committed
Use Python from uv for on runner jobs
1 parent d0bb20b commit 4ba00ef

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,8 @@ jobs:
283283
windows:
284284
env:
285285
TOTAL_GROUPS: 1
286-
UV_PYTHON: "3.13"
287-
UV_PYTHON_DOWNLOADS: "never"
288-
UV_PYTHON_PREFERENCE: "only-system"
286+
UV_PYTHON_DOWNLOADS: "manual"
287+
UV_PYTHON_PREFERENCE: "only-managed"
289288

290289
strategy:
291290
fail-fast: false
@@ -301,17 +300,14 @@ jobs:
301300
run: |
302301
git fetch --tags origin
303302
304-
- name: Install Python
305-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # 6.0.0
306-
with:
307-
python-version: |
308-
3.13
309-
3.14
310-
3.14t
311-
312303
- name: Install uv
313304
uses: astral-sh/setup-uv@2ddd2b9cb38ad8efd50337e8ab201519a34c9f24 # 7.1.1
314305

306+
- name: Install Python
307+
run: |
308+
uv python install -f 3.13 3.14 3.14t
309+
uv python install -f --default 3.13
310+
315311
- name: Install Dependencies
316312
run: |
317313
uv tool install tox --with tox-uv
@@ -356,9 +352,8 @@ jobs:
356352
windows_arm64:
357353
env:
358354
TOTAL_GROUPS: 1
359-
UV_PYTHON: "3.13"
360-
UV_PYTHON_DOWNLOADS: "never"
361-
UV_PYTHON_PREFERENCE: "only-system"
355+
UV_PYTHON_DOWNLOADS: "manual"
356+
UV_PYTHON_PREFERENCE: "only-managed"
362357

363358
strategy:
364359
fail-fast: false
@@ -374,17 +369,14 @@ jobs:
374369
run: |
375370
git fetch --tags origin
376371
377-
- name: Install Python
378-
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # 6.0.0
379-
with:
380-
python-version: |
381-
3.13
382-
3.14
383-
3.14t
384-
385372
- name: Install uv
386373
uses: astral-sh/setup-uv@2ddd2b9cb38ad8efd50337e8ab201519a34c9f24 # 7.1.1
387374

375+
- name: Install Python
376+
run: |
377+
uv python install -f 3.13 3.14 3.14t
378+
uv python install -f --default 3.13
379+
388380
- name: Install Dependencies
389381
run: |
390382
uv tool install tox --with tox-uv

0 commit comments

Comments
 (0)