Skip to content

Commit f174585

Browse files
authored
ci: add pytest timeout (#197)
1 parent 009d023 commit f174585

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ all: help
1111
TEST_FILE ?= tests/
1212

1313
test:
14-
uv run pytest --disable-socket --allow-unix-socket $(TEST_FILE)
14+
uv run pytest --disable-socket --allow-unix-socket $(TEST_FILE) --timeout 10
1515

1616
test_watch:
1717
uv run ptw . -- $(TEST_FILE)

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ test = [
2626
"pytest-socket>=0.7.0",
2727
"pytest-asyncio>=0.26.0",
2828
"types-setuptools>=69.0.0",
29-
"websockets>=15.0.1"
29+
"websockets>=15.0.1",
30+
"pytest-timeout>=2.4.0",
3031
]
3132

3233
[tool.pytest.ini_options]

uv.lock

Lines changed: 16 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)