From 2e39563ebf9ac978d1bbf603bded6a744dde320e Mon Sep 17 00:00:00 2001 From: Irfan Alibay Date: Tue, 11 Jul 2023 22:07:14 +0200 Subject: [PATCH] Add timeout minutes (#4193) --- .github/workflows/darkerbot.yaml | 1 + .github/workflows/deploy.yaml | 4 ++++ .github/workflows/gh-ci-cron.yaml | 4 ++++ .github/workflows/gh-ci.yaml | 3 +++ .github/workflows/greetings.yaml | 1 + .github/workflows/labels.yaml | 1 + .github/workflows/linters.yaml | 3 +++ .github/workflows/rtd.yaml | 1 + 8 files changed, 18 insertions(+) diff --git a/.github/workflows/darkerbot.yaml b/.github/workflows/darkerbot.yaml index 3a564a49e89..3f7d7169a0e 100644 --- a/.github/workflows/darkerbot.yaml +++ b/.github/workflows/darkerbot.yaml @@ -19,6 +19,7 @@ jobs: darker_bot: if: "github.repository == 'MDAnalysis/mdanalysis'" runs-on: ubuntu-latest + timeout-minutes: 5 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6b4d0306f00..4085ef96c38 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -32,6 +32,7 @@ jobs: if: "github.repository == 'MDAnalysis/mdanalysis'" name: Build wheels runs-on: ${{ matrix.buildplat[0] }} + timeout-minutes: 15 strategy: fail-fast: false matrix: @@ -69,6 +70,7 @@ jobs: if: "github.repository == 'MDAnalysis/mdanalysis'" name: build package source distribution runs-on: ubuntu-latest + timeout-minutes: 10 defaults: run: working-directory: ./package @@ -93,6 +95,7 @@ jobs: if: "github.repository == 'MDAnalysis/mdanalysis'" name: build test source distribution runs-on: ubuntu-latest + timeout-minutes: 10 defaults: run: working-directory: ./testsuite @@ -187,6 +190,7 @@ jobs: (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/package')) name: testpypi check runs-on: ${{ matrix.os }} + timeout-minutes: 60 needs: upload_testpypi strategy: fail-fast: false diff --git a/.github/workflows/gh-ci-cron.yaml b/.github/workflows/gh-ci-cron.yaml index 8eea28f988f..f0d52c4ccb2 100644 --- a/.github/workflows/gh-ci-cron.yaml +++ b/.github/workflows/gh-ci-cron.yaml @@ -23,6 +23,7 @@ jobs: numpy_and_scipy_dev: if: "github.repository == 'MDAnalysis/mdanalysis'" runs-on: ubuntu-latest + timeout-minutes: 60 steps: - uses: actions/checkout@v3 @@ -74,6 +75,7 @@ jobs: native_march: if: "github.repository == 'MDAnalysis/mdanalysis'" runs-on: ubuntu-latest + timeout-minutes: 60 steps: - uses: actions/checkout@v3 @@ -117,6 +119,7 @@ jobs: old_ubuntu_macos: if: "github.repository == 'MDAnalysis/mdanalysis'" runs-on: ${{ matrix.os }} + timeout-minutes: 60 strategy: fail-fast: false matrix: @@ -161,6 +164,7 @@ jobs: pip-only: if: "github.repository == 'MDAnalysis/mdanalysis'" runs-on: ubuntu-latest + timeout-minutes: 60 strategy: fail-fast: false matrix: diff --git a/.github/workflows/gh-ci.yaml b/.github/workflows/gh-ci.yaml index cf615a5bc1b..a9c6127d47e 100644 --- a/.github/workflows/gh-ci.yaml +++ b/.github/workflows/gh-ci.yaml @@ -22,6 +22,7 @@ jobs: main_tests: if: "github.repository == 'MDAnalysis/mdanalysis'" runs-on: ${{ matrix.os }} + timeout-minutes: 60 strategy: fail-fast: false matrix: @@ -113,6 +114,7 @@ jobs: build_docs: if: "github.repository == 'MDAnalysis/mdanalysis'" runs-on: ubuntu-latest + timeout-minutes: 15 env: CYTHON_TRACE_NOGIL: 1 MPLBACKEND: agg @@ -207,6 +209,7 @@ jobs: sdist_check_and_build: if: "github.repository == 'MDAnalysis/mdanalysis'" runs-on: ubuntu-latest + timeout-minutes: 30 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/greetings.yaml b/.github/workflows/greetings.yaml index 7670b0ce1d6..aa7a6ff9b6f 100644 --- a/.github/workflows/greetings.yaml +++ b/.github/workflows/greetings.yaml @@ -10,6 +10,7 @@ jobs: greeting: if: "github.repository == 'MDAnalysis/mdanalysis'" runs-on: ubuntu-latest + timeout-minutes: 10 permissions: pull-requests: write steps: diff --git a/.github/workflows/labels.yaml b/.github/workflows/labels.yaml index 338a735438b..2cac7d8e087 100644 --- a/.github/workflows/labels.yaml +++ b/.github/workflows/labels.yaml @@ -8,6 +8,7 @@ on: jobs: triage-on-file-paths: runs-on: ubuntu-latest + timeout-minutes: 10 steps: - uses: actions/labeler@v3 with: diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index a6f6901552b..fc97ec7ad44 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -19,6 +19,7 @@ jobs: darker_lint: if: "github.repository == 'MDAnalysis/mdanalysis'" runs-on: ubuntu-latest + timeout-minutes: 10 permissions: pull-requests: write defaults: @@ -99,6 +100,7 @@ jobs: pylint_check: if: "github.repository == 'MDAnalysis/mdanalysis'" runs-on: ubuntu-latest + timeout-minutes: 10 steps: - uses: actions/checkout@v3 @@ -120,6 +122,7 @@ jobs: mypy : if: "github.repository == 'MDAnalysis/mdanalysis'" runs-on: ubuntu-latest + timeout-minutes: 10 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/rtd.yaml b/.github/workflows/rtd.yaml index 64f73f873a8..e48d8f08b22 100644 --- a/.github/workflows/rtd.yaml +++ b/.github/workflows/rtd.yaml @@ -10,6 +10,7 @@ jobs: rtdpreview: if: "github.repository == 'MDAnalysis/mdanalysis'" runs-on: ubuntu-latest + timeout-minutes: 5 permissions: pull-requests: write steps: