Skip to content

Commit 6456bfb

Browse files
authored
using pytest-timeout (#4)
1 parent 262294b commit 6456bfb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: .github/workflows/ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,19 @@ jobs:
6868
run: |
6969
export PATH=$CONDA_ROOT/condabin:$CONDA_ROOT/bin:${PATH}
7070
eval "$($CONDA_ROOT/bin/python -m conda shell.bash hook)"
71-
conda create --use-local -c conda-forge --override-channels -n sharpy -v sharpy pytest
71+
conda create --use-local -c conda-forge --override-channels -n sharpy -v sharpy pytest pytest-timeout
7272
conda activate sharpy
7373
- name: Test SHARPY (pytest)
7474
run: |
7575
export PATH=$CONDA_ROOT/condabin:$CONDA_ROOT/bin:${PATH}
7676
eval "$($CONDA_ROOT/bin/python -m conda shell.bash hook)"
7777
conda activate sharpy
7878
cd test
79-
pytest . -v -s
80-
SHARPY_FORCE_DIST=1 pytest . -v -s
81-
mpirun -n 2 pytest . -v -s
82-
mpirun -n 3 pytest . -v -s
83-
mpirun -n 4 pytest . -v -s
79+
pytest . -v -s --timeout=30
80+
SHARPY_FORCE_DIST=1 pytest . -v -s --timeout=30
81+
mpirun -n 2 pytest . -v -s --timeout=30
82+
mpirun -n 3 pytest . -v -s --timeout=30
83+
mpirun -n 4 pytest . -v -s --timeout=30
8484
cd -
8585
- name: Run examples
8686
run: |

0 commit comments

Comments
 (0)