Skip to content

Commit 6de586c

Browse files
Install/run pytest in the proper environment
Do not start a new shell!
1 parent 5e2f79d commit 6de586c

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,29 +62,32 @@ jobs:
6262
if [[ "${{ matrix.python-version }}" == "3.14" ]]; then
6363
python -m pip install -v \
6464
--config-settings="setup-args=${MESON_SETUP_ARGS}" \
65-
".[test,test_extras,msgpack,google_crc32c,crc32c,zfpy]"
65+
".[test,test_extras,msgpack,google_crc32c,crc32c,zfpy]" \
66+
pytest
6667
else
6768
python -m pip install -v \
6869
--config-settings="setup-args=${MESON_SETUP_ARGS}" \
69-
".[test,test_extras,msgpack,google_crc32c,crc32c,pcodec,zfpy]"
70+
".[test,test_extras,msgpack,google_crc32c,crc32c,pcodec,zfpy]" \
71+
pytest
7072
fi
7173
else
7274
# TODO: Remove this conditional when pcodec supports Python 3.14
7375
if [[ "${{ matrix.python-version }}" == "3.14" ]]; then
7476
python -m pip install -v \
75-
".[test,test_extras,msgpack,google_crc32c,crc32c,zfpy]"
77+
".[test,test_extras,msgpack,google_crc32c,crc32c,zfpy]" \
78+
pytest
7679
else
7780
python -m pip install -v \
78-
".[test,test_extras,msgpack,google_crc32c,crc32c,pcodec,zfpy]"
81+
".[test,test_extras,msgpack,google_crc32c,crc32c,pcodec,zfpy]" \
82+
pytest
7983
fi
8084
fi
8185
8286
- name: List installed packages
8387
run: python -m pip list
8488

8589
- name: Run tests
86-
shell: "bash -l {0}"
87-
run: pytest -v
90+
run: python -m pytest -v
8891

8992
- uses: codecov/codecov-action@v5
9093
with:
@@ -138,7 +141,7 @@ jobs:
138141
run: python -m pip list
139142

140143
- name: Run checksum tests
141-
run: pytest -v tests/test_checksum32.py
144+
run: python -m pytest -v tests/test_checksum32.py
142145

143146
- uses: codecov/codecov-action@v5
144147
with:
@@ -187,7 +190,7 @@ jobs:
187190
run: python -m pip list
188191

189192
- name: Run Zarr integration tests
190-
run: pytest tests/test_zarr3.py tests/test_zarr3_import.py
193+
run: python -m pytest tests/test_zarr3.py tests/test_zarr3_import.py
191194

192195
- uses: codecov/codecov-action@v5
193196
with:

0 commit comments

Comments
 (0)