Skip to content

Commit 6ad4950

Browse files
authored
Install python versions on github action for tests (#4844)
## Changes - Add "make install-pythons" to install Python versions used by tests via uv. - Enable it on CI to make tests pass. Perf impact is negligible: > Installed 5 versions in 2.57s ## Why In #4830 we've set UV_OFFLINE=true which disables Python downloading. ## Tests CI checks on this PR.
1 parent a9c8a28 commit 6ad4950

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/actions/setup-build-environment/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ runs:
3434
with:
3535
version: "0.8.9"
3636

37+
- name: Install Python versions for tests
38+
run: make install-pythons
39+
shell: bash
40+
3741
- name: Install ruff (Python linter and formatter)
3842
uses: astral-sh/ruff-action@4919ec5cf1f49eff0871dbcea0da843445b837e6 # v3.6.1
3943
with:

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ links:
7070
checks: tidy ws links
7171

7272

73+
.PHONY: install-pythons
74+
install-pythons:
75+
uv python install 3.9 3.10 3.11 3.12 3.13
76+
7377
# Run short unit and acceptance tests (testing.Short() is true).
7478
.PHONY: test
7579
test: test-unit test-acc

0 commit comments

Comments
 (0)