diff --git a/pyproject.toml b/pyproject.toml index d1388f1..81786eb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,6 +21,7 @@ dependencies = [ [dependency-groups] dev = [ "pytest", + "pytest-timeout", "lintrunner", ] @@ -238,6 +239,7 @@ standard_library = ["typing_extensions"] [tool.pytest.ini_options] testpaths = ["tests"] +timeout = 120 markers = [ "gpu: requires a CUDA GPU", "multi_gpu: requires two or more CUDA GPUs", diff --git a/uv.lock b/uv.lock index a29fdec..61dade1 100644 --- a/uv.lock +++ b/uv.lock @@ -546,6 +546,18 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/24/25/1de2678b631f5a49215c6c96fff41ba892b0a34df68d6d80292b1b48aa7f/pytest-9.1.1-py3-none-any.whl", hash = "sha256:37a86b45efb9a47a61a36449063e8e18d0cab3161329fc099eb21783169c4f0c", size = 386536, upload-time = "2026-06-19T10:58:31.347Z" }, ] +[[package]] +name = "pytest-timeout" +version = "2.4.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "pytest" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/ac/82/4c9ecabab13363e72d880f2fb504c5f750433b2b6f16e99f4ec21ada284c/pytest_timeout-2.4.0.tar.gz", hash = "sha256:7e68e90b01f9eff71332b25001f85c75495fc4e3a836701876183c4bcfd0540a", size = 17973, upload-time = "2025-05-05T19:44:34.99Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/fa/b6/3127540ecdf1464a00e5a01ee60a1b09175f6913f0644ac748494d9c4b21/pytest_timeout-2.4.0-py3-none-any.whl", hash = "sha256:c42667e5cdadb151aeb5b26d114aff6bdf5a907f176a007a30b940d3d865b5c2", size = 14382, upload-time = "2025-05-05T19:44:33.502Z" }, +] + [[package]] name = "setuptools" version = "84.2.1" @@ -613,6 +625,7 @@ dependencies = [ dev = [ { name = "lintrunner" }, { name = "pytest" }, + { name = "pytest-timeout" }, ] [package.metadata] @@ -628,6 +641,7 @@ requires-dist = [ dev = [ { name = "lintrunner" }, { name = "pytest" }, + { name = "pytest-timeout" }, ] [[package]]