Unverified Commit bcfc8343 authored by Cunxiao Ni's avatar Cunxiao Ni Committed by GitHub
Browse files

[CI]Adds pytest timeout to CI (#792)

* [CI]Adds pytest timeout to CI

Adds a timeout to pytest runs in CI to prevent jobs from hanging indefinitely.
This also adds `pytest-timeout` to the test requirements.

* fix lint
parent 9d7d45be
...@@ -115,4 +115,4 @@ jobs: ...@@ -115,4 +115,4 @@ jobs:
source "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate" source "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate"
cd testing/python/amd cd testing/python/amd
unset PYTHONPATH unset PYTHONPATH
python -m pytest -v test_tilelang_test_amd.py --durations=0 python -m pytest -v test_tilelang_test_amd.py --durations=0 --timeout=3600
\ No newline at end of file \ No newline at end of file
...@@ -118,4 +118,4 @@ jobs: ...@@ -118,4 +118,4 @@ jobs:
source "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate" source "${{ runner.tool_cache }}/${{ env.VENV_DIR }}/bin/activate"
cd testing/python cd testing/python
unset PYTHONPATH unset PYTHONPATH
python -m pytest -n 4 -v -r fE --durations=0 python -m pytest -n 4 -v -r fE --durations=0 --timeout=3600
...@@ -13,6 +13,7 @@ numpy>=1.23.5 ...@@ -13,6 +13,7 @@ numpy>=1.23.5
pytest>=6.2.4 pytest>=6.2.4
pytest_xdist>=2.2.1 pytest_xdist>=2.2.1
pytest-durations pytest-durations
pytest-timeout
packaging>=21.0 packaging>=21.0
PyYAML PyYAML
tqdm>=4.62.3 tqdm>=4.62.3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment