Skip to content

Commit 3a63406

Browse files
committed
fix test and mypy action
1 parent ef14f3e commit 3a63406

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/tests.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ jobs:
3636
run: curl -LsSf https://astral.sh/uv/0.4.1/install.sh | sh
3737

3838
- name: Test with pytest
39-
run: uv run --with . --extra dev --resolution ${{ matrix.resolution }} --pre --python ${{ matrix.python-version}} pytest --cov=volara tests
39+
run: |
40+
uv pip install .
41+
uv run --extra dev --resolution ${{ matrix.resolution }} --pre --python ${{ matrix.python-version}} pytest --cov=volara tests
4042
4143
- name: Upload coverage to Codecov
4244
uses: codecov/codecov-action@v2

pyproject.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ requires-python = ">=3.11"
77
dependencies = [
88
"volara",
99
"torch>=2.4",
10+
"daisy>=1.2.2",
11+
"gunpowder>=1.4.0",
12+
"funlib.geometry>=0.3",
13+
"funlib.persistence>=0.6",
14+
"pydantic>=2.6.3",
1015
]
1116

1217
[project.optional-dependencies]
@@ -34,4 +39,11 @@ predict = "volara_torch.blockwise.predict:Predict"
3439
volara = { git = "https://github.com/e11bio/volara" }
3540

3641
[tool.ruff]
37-
lint.select = ["F", "W", "I001"]
42+
lint.select = ["F", "W", "I001"]
43+
44+
[[tool.mypy.overrides]]
45+
module = [
46+
"daisy.*",
47+
"gunpowder.*",
48+
]
49+
ignore_missing_imports = true

0 commit comments

Comments
 (0)