Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ jobs:
python -m pip install -e .

- name: Test
timeout-minutes: 1
run: python -m pytest --cov-report=xml --cov=.
# Leave room for faulthandler_timeout (60s) to dump stacks and for
# asyncssh's login_timeout (120s) to raise before the step is killed.
timeout-minutes: 3
run: >-
python -m pytest --cov-report=xml --cov=.
--reruns 1 --reruns-delay 2

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
Expand Down
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ namespaces = false

[tool.setuptools_scm]

[tool.pytest.ini_options]
# The suite intermittently hangs on the first SSH connection against
# mock-ssh-server (Linux only). Dump all thread stacks when a test
# exceeds this, so a hang in CI is diagnosable instead of a mute
# step-timeout kill.
faulthandler_timeout = 60

[tool.black]
line-length = 79
target-version = ['py39']
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
pytest
pytest-asyncio
pytest-cov
pytest-rerunfailures
mock-ssh-server
importlib-metadata >= 6.0.0
Loading