Skip to content

Commit fe42441

Browse files
committed
[CI] Fix submodules and use uv
1 parent f169148 commit fe42441

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ on:
88

99
jobs:
1010
build-and-test:
11-
runs-on: ${{ matrix.os }}
12-
strategy:
13-
matrix:
14-
os: [ubuntu-latest, macos-latest]
11+
runs-on: ubuntu-latest
1512
steps:
1613
- name: Checkout repository
1714
uses: actions/checkout@v4
15+
with:
16+
submodules: 'recursive'
17+
fetch-depth: 0
1818

1919
- name: Install build dependencies (Linux)
2020
if: runner.os == 'Linux'
@@ -34,14 +34,17 @@ jobs:
3434
with:
3535
python-version: '3.10'
3636

37-
- name: Install Python test dependencies
37+
- name: Install UV and sync environment
3838
run: |
3939
python -m pip install --upgrade pip
40-
python -m pip install "h5py>=3.15.1" "pytest>=9.0.2" "tqdm>=4.67.1" uv
40+
python -m pip install uv
41+
cd tests
42+
uv sync
4143
42-
- name: Run tests with uv
44+
- name: Run tests with uv (from tests directory)
4345
run: |
44-
uv run python -m pytest -q tests
46+
cd tests
47+
uv run pytest -q
4548
env:
4649
PYTHONPATH: "${{ github.workspace }}"
4750

0 commit comments

Comments
 (0)