File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 33
33
DPF_PORT : 21004
34
34
MAPDL_PACKAGE : ghcr.io/ansys/mapdl
35
35
ON_CI : True
36
- PYTEST_ARGUMENTS : ' -vvv -rxXsa --color=yes --durations=10 --random-order --random-order-bucket=class --maxfail=10 --reruns 3 --reruns-delay 4 --cov=ansys.mapdl.core --cov-report=html'
36
+ PYTEST_ARGUMENTS : ' -vvv -rxXsa --color=yes --durations=10 --random-order --random-order-bucket=class --maxfail=10 --reruns 3 --reruns-delay 4 --cov=ansys.mapdl.core --cov-report=html --timeout=40 '
37
37
38
38
BUILD_CHEATSHEET : True
39
39
@@ -821,7 +821,7 @@ jobs:
821
821
822
822
- name : " Unit testing requirements installation"
823
823
run : |
824
- python -m pip install pytest pytest-rerunfailures pytest-cov pytest-random-order pyfakefs
824
+ python -m pip install pytest pytest-rerunfailures pytest-cov pytest-random-order pyfakefs pytest-timeout
825
825
826
826
- name : " Unit testing"
827
827
env :
@@ -929,7 +929,7 @@ jobs:
929
929
930
930
- name : " Unit testing requirements installation"
931
931
run : |
932
- python -m pip install pytest pytest-rerunfailures pytest-cov pytest-random-order
932
+ python -m pip install pytest pytest-rerunfailures pytest-cov pytest-random-order pyfakefs pytest-timeout
933
933
934
934
- name : " Unit testing"
935
935
env :
Original file line number Diff line number Diff line change
1
+ tests: adding timeout to each test
Original file line number Diff line number Diff line change @@ -66,6 +66,7 @@ tests = [
66
66
" pytest-pyvista==0.1.9" ,
67
67
" pytest-random-order==1.1.1" ,
68
68
" pytest-rerunfailures==15.0" ,
69
+ " pytest-timeout==2.3.1" ,
69
70
" pytest==8.3.4" ,
70
71
" scipy==1.14.1" ,
71
72
" vtk==9.3.1" ,
@@ -117,7 +118,7 @@ pymapdl_convert_script = "ansys.mapdl.core.cli:old_pymapdl_convert_script_entry_
117
118
pymapdl = " ansys.mapdl.core.cli:main"
118
119
119
120
[tool .pytest .ini_options ]
120
- addopts = " -rxXsa -vvv --maxfail=10 --random-order-bucket=class --random-order --durations=10"
121
+ addopts = " -rxXsa -vvv --maxfail=10 --random-order-bucket=class --random-order --durations=10 --timeout=40 "
121
122
junit_family = " legacy"
122
123
filterwarnings = [
123
124
" ignore::FutureWarning" ,
You can’t perform that action at this time.
0 commit comments