diff --git a/.azure/template-examples.yml b/.azure/template-examples.yml index 8b781c0cd8..1d7a6b0e75 100644 --- a/.azure/template-examples.yml +++ b/.azure/template-examples.yml @@ -57,7 +57,7 @@ jobs: - script: | pip list - python -m coverage run --source flash -m pytest tests/examples -vV --durations=30 + python -m coverage run --source flash -m pytest tests/examples -vV --timeout=300 --durations=30 displayName: 'Testing' - bash: | diff --git a/.github/workflows/ci-testing.yml b/.github/workflows/ci-testing.yml index 9dc5e1f5e1..3855246475 100644 --- a/.github/workflows/ci-testing.yml +++ b/.github/workflows/ci-testing.yml @@ -151,7 +151,7 @@ jobs: tests/examples \ tests/template \ tests/${{ matrix.topic }} \ - -v # --reruns 3 --reruns-delay 2 + -v --timeout=300 --durations=50 # --reruns 3 --reruns-delay 2 - name: Save HF cache if: github.ref == 'refs/heads/master' diff --git a/requirements/test.txt b/requirements/test.txt index 1621bd6233..c22d82a3ab 100644 --- a/requirements/test.txt +++ b/requirements/test.txt @@ -6,3 +6,4 @@ pytest-doctestplus ==0.13.0 pytest-rerunfailures ==12.0 pytest-forked ==1.6.0 pytest-mock ==3.11.1 +pytest-timeout ==2.1.0