Skip to content

Commit a2b5461

Browse files
committed
Run mypy in pixi env
1 parent 8e83cb4 commit a2b5461

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.github/workflows/typing.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,12 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- uses: actions/checkout@v4
28-
29-
- name: Set up Python
30-
uses: actions/setup-python@v4
28+
- uses: prefix-dev/[email protected]
3129
with:
32-
python-version: '3.12'
33-
34-
- name: Install deps
30+
pixi-version: v0.41.4
31+
- name: List installed libraries
3532
run: |
36-
# We need to test optional dep to add all the library stubs
37-
pip install -e '.[test]'
38-
33+
pixi run -e test pip list
3934
- name: Type check
4035
run: |
41-
mypy virtualizarr
36+
pixi run -e test run-mypy

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ pytest-mypy = ">=0.10.3,<0.11"
135135
ruff = ">=0.9.9,<0.10"
136136

137137
[tool.pixi.feature.test.tasks]
138+
run-mypy = { cmd = "mypy virtualizarr" }
138139
test = { cmd = "pytest --run-network-tests" }
139140
test-no-network = { cmd = "pytest" }
140141
test-cov = { cmd = "pytest --run-network-tests --verbose --cov=virtualizarr --cov=term-missing" }
@@ -145,7 +146,7 @@ test-html-cov = { cmd = "pytest --run-network-tests --verbose --cov=virtualizarr
145146
test = ["remote", "hdf", "hdf5", "netcdf3", "fits", "icechunk", "kerchunk", "test", "hdf5-lib"]
146147
test-py311 = ["remote", "hdf", "hdf5", "netcdf3", "fits", "icechunk", "kerchunk", "test", "hdf5-lib", "py311"] # test against python 3.11
147148
test-py312 = ["remote", "hdf", "hdf5", "netcdf3", "fits", "icechunk", "kerchunk", "test", "hdf5-lib", "py312"] # test against python 3.12
148-
doc = ["docs"]
149+
docs = ["docs"]
149150

150151
[tool.pixi.feature.docs.tasks]
151152
docs = { cmd = "make html", cwd = "docs" }

0 commit comments

Comments
 (0)