Browse Source

add a timeout for the github CI jobs, fixes #5548

sometimes they hung for 6h... (not our fault, seems like a infrastructure problem).
Thomas Waldmann 4 years ago
parent
commit
b2b2a2622d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      .github/workflows/ci.yml

+ 3 - 1
.github/workflows/ci.yml

@@ -32,6 +32,7 @@ jobs:
   lint:
 
     runs-on: ubuntu-latest
+    timeout-minutes: 10
 
     steps:
     - uses: actions/checkout@v2
@@ -74,6 +75,7 @@ jobs:
       TOXENV: ${{ matrix.toxenv }}
 
     runs-on: ${{ matrix.os }}
+    timeout-minutes: 40
 
     steps:
     - uses: actions/checkout@v2
@@ -127,7 +129,7 @@ jobs:
         tox --skip-missing-interpreters
     - name: Upload coverage to Codecov
       uses: codecov/codecov-action@v1
-      env: 
+      env:
         OS: ${{ runner.os }}
         python: ${{ matrix.python-version }}
       with: