Skip to content

Commit ae6f313

Browse files
committed
Reduce GitHub Actions timeout from 6h to 75min
From times to times, tests (specially on PyPy) seem to get stuck and be cancelled by GitHub after the default timeout (6h). Before these tests are cancelled, however they count as an active job and limit the amount of concurrent jobs/workflows PyPA's organization may have running. Currently, the slowest job running for the `main` workflow seem to be the tests for PyPy+Windows, which take around 55 min. Therefore, chances are that, if a test is taking much more than 1h to run, it got stuck. We can be pragmatic and reduce the timeout for the `main` workflow and free the resources quickly.
1 parent 5b2b20d commit ae6f313

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
runs-on: ${{ matrix.platform }}
3030
env:
3131
SETUPTOOLS_USE_DISTUTILS: ${{ matrix.distutils }}
32+
timeout-minutes: 75
3233
steps:
3334
- uses: actions/checkout@v2
3435
- name: Setup Python
@@ -50,6 +51,7 @@ jobs:
5051
5152
test_cygwin:
5253
runs-on: windows-latest
54+
timeout-minutes: 75
5355
steps:
5456
- uses: actions/checkout@v2
5557
- name: Install Cygwin with Python
@@ -82,6 +84,7 @@ jobs:
8284
# "integration")
8385
# With that in mind, the integration tests can run for a single setup
8486
runs-on: ubuntu-latest
87+
timeout-minutes: 75
8588
steps:
8689
- uses: actions/checkout@v2
8790
- name: Install OS-level dependencies
@@ -103,7 +106,7 @@ jobs:
103106
needs: [test, test_cygwin, integration-test]
104107
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
105108
runs-on: ubuntu-latest
106-
109+
timeout-minutes: 75
107110
steps:
108111
- uses: actions/checkout@v2
109112
- name: Setup Python

0 commit comments

Comments
 (0)