Skip to content

Commit 031e0b3

Browse files
committed
Update python-tests.yml
1 parent 8df3837 commit 031e0b3

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/python-tests.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,27 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v4
22+
2223
- name: Install uv
2324
uses: astral-sh/setup-uv@v5
2425
with:
2526
enable-cache: true
2627
cache-dependency-glob: "uv.lock"
27-
- name: Set up Python
28-
run: uv python install
28+
29+
- name: Install Python (pin to a wheel-friendly version)
30+
run: |
31+
uv python install 3.12
32+
uv python pin 3.12
33+
34+
- name: Create virtualenv
35+
run: uv venv
36+
37+
- name: Preinstall h5py as wheel only
38+
run: uv pip install --only-binary=:all: "h5py==3.13.0"
39+
2940
- name: Install the project
30-
run: |
31-
uv pip install --only-binary=:all: "h5py==3.13.0"
32-
uv sync --extra dev
33-
- name: Run tests
34-
run: uv run pytest tests
41+
run: uv sync --extra dev
42+
43+
- name: Run tests
44+
run: uv run pytest tests
3545

0 commit comments

Comments
 (0)