diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 509194e0b2..277b0eb543 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