summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMarc Mueller <30130371+cdce8p@users.noreply.github.com>2022-01-31 21:39:19 +0100
committerGitHub <noreply@github.com>2022-01-31 21:39:19 +0100
commita62e11181370ebcafaead09319b05ec8b5b42ce5 (patch)
tree0151f0c5b0c158e76801558b7fae95fd7ac1270b /.github
parentf11981b8420d12b5879107f5c59b0330f4fb454c (diff)
downloadastroid-git-a62e11181370ebcafaead09319b05ec8b5b42ce5.tar.gz
Add timeouts for CI jobs (#1378)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yaml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 509194e0..277b0eb5 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -16,6 +16,7 @@ jobs:
prepare-base:
name: Prepare base dependencies
runs-on: ubuntu-latest
+ timeout-minutes: 5
outputs:
python-key: ${{ steps.generate-python-key.outputs.key }}
pre-commit-key: ${{ steps.generate-pre-commit-key.outputs.key }}
@@ -76,6 +77,7 @@ jobs:
formatting:
name: Run pre-commit checks
runs-on: ubuntu-latest
+ timeout-minutes: 5
needs: prepare-base
steps:
- name: Check out code from GitHub
@@ -118,6 +120,7 @@ jobs:
prepare-tests-linux:
name: Prepare tests for Python ${{ matrix.python-version }} (Linux)
runs-on: ubuntu-latest
+ timeout-minutes: 5
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
@@ -161,6 +164,7 @@ jobs:
pytest-linux:
name: Run tests Python ${{ matrix.python-version }} (Linux)
runs-on: ubuntu-latest
+ timeout-minutes: 10
needs: prepare-tests-linux
strategy:
fail-fast: false
@@ -200,6 +204,7 @@ jobs:
coverage:
name: Process test coverage
runs-on: ubuntu-latest
+ timeout-minutes: 5
needs: ["prepare-tests-linux", "pytest-linux"]
strategy:
matrix:
@@ -244,6 +249,7 @@ jobs:
prepare-tests-windows:
name: Prepare tests for Python ${{ matrix.python-version }} (Windows)
runs-on: windows-latest
+ timeout-minutes: 5
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
@@ -287,6 +293,7 @@ jobs:
pytest-windows:
name: Run tests Python ${{ matrix.python-version }} (Windows)
runs-on: windows-latest
+ timeout-minutes: 10
needs: prepare-tests-windows
strategy:
fail-fast: false
@@ -325,6 +332,7 @@ jobs:
prepare-tests-pypy:
name: Prepare tests for Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
+ timeout-minutes: 5
strategy:
matrix:
python-version: ["pypy3"]
@@ -367,6 +375,7 @@ jobs:
pytest-pypy:
name: Run tests Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
+ timeout-minutes: 10
needs: prepare-tests-pypy
strategy:
fail-fast: false