diff --git a/.github/workflows/caching-envs-example.yml b/.github/workflows/caching-envs-example.yml index 24cd3d26..0e623573 100644 --- a/.github/workflows/caching-envs-example.yml +++ b/.github/workflows/caching-envs-example.yml @@ -13,6 +13,11 @@ on: # Note that cronjobs run on master/main by default - cron: "0 0 * * *" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: caching-example: name: Caching-Env @@ -27,6 +32,7 @@ jobs: os: ["ubuntu-latest", "macos-latest", "windows-latest"] runs-on: ${{ matrix.os }} + timeout-minutes: 30 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/caching-example.yml b/.github/workflows/caching-example.yml index 2f1fae55..e9d11f9b 100644 --- a/.github/workflows/caching-example.yml +++ b/.github/workflows/caching-example.yml @@ -13,6 +13,11 @@ on: # Note that cronjobs run on master/main by default - cron: "0 0 * * *" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: caching-example: # prevent cronjobs from running on forks @@ -21,6 +26,7 @@ jobs: 'conda-incubator/setup-miniconda') || (github.event_name != 'schedule') name: Caching runs-on: "ubuntu-latest" + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - name: Cache conda diff --git a/.github/workflows/example-1.yml b/.github/workflows/example-1.yml index 0109700c..0a539f69 100644 --- a/.github/workflows/example-1.yml +++ b/.github/workflows/example-1.yml @@ -13,6 +13,11 @@ on: # Note that cronjobs run on master/main by default - cron: "0 0 * * *" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: example-1: # prevent cronjobs from running on forks @@ -26,6 +31,7 @@ jobs: matrix: os: ["ubuntu-latest", "macos-latest", "windows-latest"] python-version: ["3.8", "3.11"] + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ diff --git a/.github/workflows/example-10.yml b/.github/workflows/example-10.yml index da7cbf73..c948553e 100644 --- a/.github/workflows/example-10.yml +++ b/.github/workflows/example-10.yml @@ -13,6 +13,11 @@ on: # Note that cronjobs run on master/main by default - cron: "0 0 * * *" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: example-10-miniforge: # prevent cronjobs from running on forks @@ -76,6 +81,7 @@ jobs: - os: macos miniforge-variant: Mambaforge miniforge-version: "23.3.1-1" + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ diff --git a/.github/workflows/example-11.yml b/.github/workflows/example-11.yml index 41ab082c..f7311201 100644 --- a/.github/workflows/example-11.yml +++ b/.github/workflows/example-11.yml @@ -13,6 +13,11 @@ on: # Note that cronjobs run on master/main by default - cron: "0 0 * * *" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: example-11: # prevent cronjobs from running on forks @@ -29,6 +34,7 @@ jobs: os: ["ubuntu-latest", "windows-latest"] architecture: ["x86"] miniconda-version: ["latest"] + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ diff --git a/.github/workflows/example-2.yml b/.github/workflows/example-2.yml index 6537d935..bb7459b2 100644 --- a/.github/workflows/example-2.yml +++ b/.github/workflows/example-2.yml @@ -13,6 +13,11 @@ on: # Note that cronjobs run on master/main by default - cron: "0 0 * * *" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: example-2-linux: # prevent cronjobs from running on forks @@ -21,6 +26,7 @@ jobs: 'conda-incubator/setup-miniconda') || (github.event_name != 'schedule') name: Ex2 Linux runs-on: "ubuntu-latest" + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ @@ -43,6 +49,7 @@ jobs: example-2-mac: name: Ex2 Mac runs-on: "macos-latest" + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ @@ -71,6 +78,7 @@ jobs: example-2-win: name: Ex2 Windows runs-on: "windows-latest" + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ diff --git a/.github/workflows/example-3.yml b/.github/workflows/example-3.yml index 6867bd6b..7b071706 100644 --- a/.github/workflows/example-3.yml +++ b/.github/workflows/example-3.yml @@ -13,6 +13,11 @@ on: # Note that cronjobs run on master/main by default - cron: "0 0 * * *" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: example-3: # prevent cronjobs from running on forks @@ -24,6 +29,7 @@ jobs: defaults: run: shell: bash -el {0} + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ @@ -45,6 +51,7 @@ jobs: defaults: run: shell: bash -el {0} + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ diff --git a/.github/workflows/example-4.yml b/.github/workflows/example-4.yml index b3bd7036..59f0db0d 100644 --- a/.github/workflows/example-4.yml +++ b/.github/workflows/example-4.yml @@ -13,6 +13,11 @@ on: # Note that cronjobs run on master/main by default - cron: "0 0 * * *" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: example-4: # prevent cronjobs from running on forks @@ -24,6 +29,7 @@ jobs: defaults: run: shell: bash -el {0} + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ diff --git a/.github/workflows/example-5.yml b/.github/workflows/example-5.yml index 5d22e612..5b656d44 100644 --- a/.github/workflows/example-5.yml +++ b/.github/workflows/example-5.yml @@ -13,6 +13,11 @@ on: # Note that cronjobs run on master/main by default - cron: "0 0 * * *" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: example-5-linux: # prevent cronjobs from running on forks @@ -26,6 +31,7 @@ jobs: defaults: run: shell: bash -el {0} + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - run: | @@ -50,6 +56,7 @@ jobs: defaults: run: shell: bash -el {0} + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ @@ -68,6 +75,7 @@ jobs: example-5-win: name: Ex5 Windows runs-on: "windows-latest" + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ diff --git a/.github/workflows/example-6.yml b/.github/workflows/example-6.yml index 8274fa1a..febfd613 100644 --- a/.github/workflows/example-6.yml +++ b/.github/workflows/example-6.yml @@ -13,6 +13,11 @@ on: # Note that cronjobs run on master/main by default - cron: "0 0 * * *" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: example-6: # prevent cronjobs from running on forks @@ -35,6 +40,7 @@ jobs: defaults: run: shell: bash -el {0} + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ diff --git a/.github/workflows/example-7.yml b/.github/workflows/example-7.yml index 63ef12d4..effe4695 100644 --- a/.github/workflows/example-7.yml +++ b/.github/workflows/example-7.yml @@ -13,6 +13,11 @@ on: # Note that cronjobs run on master/main by default - cron: "0 0 * * *" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: example-7: # prevent cronjobs from running on forks @@ -28,6 +33,7 @@ jobs: fail-fast: false matrix: os: ["ubuntu-latest", "macos-latest", "windows-latest"] + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ diff --git a/.github/workflows/example-8.yml b/.github/workflows/example-8.yml index c843676b..187b12c6 100644 --- a/.github/workflows/example-8.yml +++ b/.github/workflows/example-8.yml @@ -13,6 +13,11 @@ on: # Note that cronjobs run on master/main by default - cron: "0 0 * * *" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: example-8: # prevent cronjobs from running on forks @@ -26,6 +31,7 @@ jobs: matrix: os: ["ubuntu-latest", "macos-latest", "windows-latest"] python-version: ["3.8", "3.11"] + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ diff --git a/.github/workflows/example-9.yml b/.github/workflows/example-9.yml index 7ae2feca..99c104b1 100644 --- a/.github/workflows/example-9.yml +++ b/.github/workflows/example-9.yml @@ -13,6 +13,11 @@ on: # Note that cronjobs run on master/main by default - cron: "0 0 * * *" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: example-9: # prevent cronjobs from running on forks @@ -26,6 +31,7 @@ jobs: matrix: os: ["ubuntu-latest", "macos-latest", "windows-latest"] python-version: ["3.8", "3.11"] + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./ diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 5a27f23c..a82f41bb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,10 +10,16 @@ on: - "main" - "master" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: lint: name: Lint runs-on: "ubuntu-latest" + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 @@ -27,6 +33,7 @@ jobs: build: name: Build runs-on: "ubuntu-latest" + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 diff --git a/.github/workflows/regression-checks.yml b/.github/workflows/regression-checks.yml index abc96a10..04f4bc50 100644 --- a/.github/workflows/regression-checks.yml +++ b/.github/workflows/regression-checks.yml @@ -13,6 +13,11 @@ on: # Note that cronjobs run on master/main by default - cron: "0 0 * * *" +concurrency: + group: + ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + jobs: issue-114: # prevent cronjobs from running on forks @@ -29,6 +34,7 @@ jobs: matrix: os: ["ubuntu", "macos", "windows"] python-version: ["3.9"] + timeout-minutes: 30 steps: - uses: actions/checkout@v4 - uses: ./