Skip to content

Commit 878c16b

Browse files
committed
Add timeout.
1 parent 4c1957c commit 878c16b

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

justfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,16 @@ install:
33
uv sync --all-groups
44

55
# Run tests
6-
test:
7-
uv run --group test pytest --cov=src --cov=tests --cov-report=xml
6+
test *args="":
7+
uv run --group test pytest --cov=src --cov=tests --cov-report=xml --timeout=30 {{args}}
8+
9+
# Run tests with lowest dependency resolution
10+
test-lowest *args="":
11+
uv run --group test --resolution lowest-direct pytest --timeout=30 {{args}}
12+
13+
# Run tests with highest dependency resolution
14+
test-highest *args="":
15+
uv run --group test --resolution highest pytest --timeout=30 {{args}}
816

917
# Run type checking
1018
typing:
@@ -24,11 +32,3 @@ docs-serve:
2432

2533
# Run all checks (format, lint, typing, test)
2634
check: lint typing test
27-
28-
# Run tests with lowest dependency resolution
29-
test-lowest:
30-
uv run --group test --resolution lowest-direct pytest
31-
32-
# Run tests with highest dependency resolution
33-
test-highest:
34-
uv run --group test --resolution highest pytest

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ test = [
4545
"nbmake",
4646
"pytest>=8.4.0",
4747
"pytest-cov>=5.0.0",
48+
"pytest-timeout>=2.4.0",
4849
{include-group = "coiled"},
4950
{include-group = "dask"},
5051
]

0 commit comments

Comments
 (0)