Skip to content

Commit 7c0c0da

Browse files
committed
Add short timeouts for GitHub actions.
This avoids wasting 6h of runners when something goes wrong.
1 parent 5f95f27 commit 7c0c0da

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
with:
6262
name: dist-${{ matrix.os }}
6363
path: wheelhouse/*.whl
64+
timeout-minutes: 30
6465

6566
upload:
6667
name: Upload
@@ -91,3 +92,4 @@ jobs:
9192
env:
9293
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9394
run: gh release -R python-websockets/websockets create ${{ github.ref_name }} --notes "See https://websockets.readthedocs.io/en/stable/project/changelog.html for details."
95+
timeout-minutes: 5

.github/workflows/tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
run: tox -e coverage
2929
- name: Run tests with per-module coverage
3030
run: tox -e maxi_cov
31+
timeout-minutes: 3
3132

3233
quality:
3334
name: Run code quality checks
@@ -45,6 +46,7 @@ jobs:
4546
run: tox -e ruff
4647
- name: Check types statically
4748
run: tox -e mypy
49+
timeout-minutes: 1
4850

4951
matrix:
5052
name: Run tests on Python ${{ matrix.python }}
@@ -78,3 +80,4 @@ jobs:
7880
run: pip install tox
7981
- name: Run tests
8082
run: tox -e py
83+
timeout-minutes: 2

0 commit comments

Comments
 (0)