Skip to content

Commit 0ce2351

Browse files
link89Copilot
andauthored
set default timeout for pytest (#5265)
Avoid wasting time on broken test that pending the workflow for a long time like this: https://github.com/deepmodeling/deepmd-kit/actions/runs/22224311896 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Added test timeout configuration to prevent indefinitely hanging test runs, improving test suite reliability and execution stability. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: link89 <3314130+link89@users.noreply.github.com>
1 parent e679b8d commit 0ce2351

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ test = [
8888
"pytest-cov",
8989
"pytest-sugar",
9090
"pytest-split",
91+
"pytest-timeout",
9192
"dpgui",
9293
# to support Array API 2024.12
9394
'array-api-strict>=2.2;python_version>="3.9"',
@@ -464,6 +465,7 @@ runtime-evaluated-base-classes = ["torch.nn.Module"]
464465

465466
[tool.pytest.ini_options]
466467
markers = "run"
468+
timeout = 1800
467469

468470
[tool.coverage.run]
469471
plugins = ["source.3rdparty.coverage_plugins.jit_plugin"]

0 commit comments

Comments
 (0)