Skip to content

Commit bc28d8c

Browse files
committed
ci: add pytest timeout
1 parent a7ad6c2 commit bc28d8c

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ install:
1919
if ($env:PLATFORM -eq "x64") { $env:PYTHON = "$env:PYTHON-x64" }
2020
$env:PATH = "C:\Python$env:PYTHON\;C:\Python$env:PYTHON\Scripts\;$env:PATH"
2121
python -W ignore -m pip install --upgrade pip wheel
22-
python -W ignore -m pip install pytest numpy --no-warn-script-location
22+
python -W ignore -m pip install pytest numpy --no-warn-script-location pytest-timeout
2323
- ps: |
2424
Start-FileDownload 'https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.zip'
2525
7z x eigen-3.3.7.zip -y > $null

setup.cfg

+3
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,6 @@ warn_unused_ignores = True
8080
warn_return_any = True
8181
no_implicit_reexport = True
8282
strict_equality = True
83+
84+
[tool:pytest]
85+
timeout = 300

tests/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ numpy==1.19.3; (platform_python_implementation!="PyPy" or sys_platform=="linux")
55
pytest==4.6.9; python_version<"3.5"
66
pytest==6.1.2; python_version=="3.5"
77
pytest==6.2.1; python_version>="3.6"
8+
pytest-timeout
89
scipy==1.2.3; (platform_python_implementation!="PyPy" or sys_platform=="linux") and python_version<"3.6"
910
scipy==1.5.4; (platform_python_implementation!="PyPy" or sys_platform=="linux") and python_version>="3.6" and python_version<"3.10"

0 commit comments

Comments
 (0)