From a62e11181370ebcafaead09319b05ec8b5b42ce5 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Mon, 31 Jan 2022 21:39:19 +0100 Subject: Add timeouts for CI jobs (#1378) --- .github/workflows/ci.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.github') 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 -- cgit v1.2.1