From 81f37be9d66f984c01041392cd741f68257bb312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Fri, 6 Jan 2023 19:58:41 +0545 Subject: [PATCH] ci: timeout tests if it takes >5min It most likely means it's frozen and unlikely to resume again. We'd want to see where it froze, so this will provide us with a traceback. --- .github/workflows/tests.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 10be97a70..6a8622232 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -69,8 +69,11 @@ jobs: pip install --upgrade pip wheel pip install -e ".[dev]" - name: run tests - timeout-minutes: 20 - run: pytest -nauto --durations 100 --cov --cov-report=xml --cov-report=term -k "${{ matrix.pytest-filter }}" + timeout-minutes: 30 + run: > + pytest -nauto --timeout=300 --durations=100 + --cov --cov-report=xml --cov-report=term + -k "${{ matrix.pytest-filter }}" - name: upload coverage report uses: codecov/codecov-action@v3 with: