summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorAnderson Bravalheri <andersonbravalheri@gmail.com>2022-02-15 22:24:40 +0000
committerAnderson Bravalheri <andersonbravalheri@gmail.com>2022-02-15 22:32:11 +0000
commitae6f313591bc66918708899ae2f1ce31df83a05d (patch)
treeec469180578c953e519f78479730d9d89e9169bf /.github/workflows
parent5b2b20d32b59f57d703723aadacfc308126034d7 (diff)
downloadpython-setuptools-git-ae6f313591bc66918708899ae2f1ce31df83a05d.tar.gz
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.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/main.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index c985f851..5a8d510d 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -29,6 +29,7 @@ jobs:
runs-on: ${{ matrix.platform }}
env:
SETUPTOOLS_USE_DISTUTILS: ${{ matrix.distutils }}
+ timeout-minutes: 75
steps:
- uses: actions/checkout@v2
- name: Setup Python
@@ -50,6 +51,7 @@ jobs:
test_cygwin:
runs-on: windows-latest
+ timeout-minutes: 75
steps:
- uses: actions/checkout@v2
- name: Install Cygwin with Python
@@ -82,6 +84,7 @@ jobs:
# "integration")
# With that in mind, the integration tests can run for a single setup
runs-on: ubuntu-latest
+ timeout-minutes: 75
steps:
- uses: actions/checkout@v2
- name: Install OS-level dependencies
@@ -103,7 +106,7 @@ jobs:
needs: [test, test_cygwin, integration-test]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
-
+ timeout-minutes: 75
steps:
- uses: actions/checkout@v2
- name: Setup Python