Skip to content

Commit 4ce5175

Browse files
ci: add pytest timeout and hang diagnostics
1 parent 017d30f commit 4ce5175

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/auto-ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343

4444
build-py:
4545
needs: build-js
46+
timeout-minutes: 90
4647

4748
strategy:
4849
fail-fast: false
@@ -88,11 +89,14 @@ jobs:
8889
jupyter kernelspec list
8990
jupyter nbconvert --execute --ExecutePreprocessor.kernel_name=python --to html *.ipynb
9091
- name: Try Pytest
92+
timeout-minutes: 20
9193
working-directory: ./
9294
run: |
9395
pip install duckdb_engine
9496
pip install pytest
95-
pytest tests
97+
echo "[CI] pytest start"
98+
python -X faulthandler -m pytest -o faulthandler_timeout=300 tests
99+
echo "[CI] pytest end"
96100
- name: Uploading notebooks
97101
uses: actions/upload-artifact@v4
98102
if: ${{ matrix.python-version == '3.12' && matrix.os-version == 'ubuntu-latest' }}

0 commit comments

Comments
 (0)