Skip to content

Commit d6cfd4f

Browse files
committed
Fix pytest workflow
1 parent 60899f7 commit d6cfd4f

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/pytest.yaml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,18 @@ jobs:
2929

3030
- name: Install test dependencies
3131
run: |
32-
python -m pip install pytest pytest-xdist
33-
- name: List pip package versions
34-
run: python -m pip freeze --local
32+
python -m pip install --upgrade pip
33+
python -m pip install pytest pytest-xdist --editable .
34+
python -m pip freeze --local
3535
36-
- name: Run tests
36+
- name: Run tests not requiring xarray
3737
run: |
38-
python -m pytest tests -v -n auto
38+
python -m pytest -n auto --ignore run_sample.py --ignore tests/test_run_sample.py
39+
40+
- name: Install xarray
41+
run: |
42+
python -m pip install xarray h5netcdf
43+
44+
- name: Run tests requiring xarray
45+
run: |
46+
python -m pytest -n auto tests/test_run_sample.py

0 commit comments

Comments
 (0)