diff --git a/.github/workflows/cancel.yml b/.github/workflows/cancel.yml deleted file mode 100644 index 6f2ba231e66..00000000000 --- a/.github/workflows/cancel.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Cancel - -on: [push] - -jobs: - cancel: - name: 'Cancel Previous Runs' - runs-on: ubuntu-latest - timeout-minutes: 3 - steps: - - uses: styfle/cancel-workflow-action@0.11.0 - with: - # Ids to cancel core/mpi/gpu/examples/tutorials - # https://api.github.com/repos/devitocodes/devito/actions/workflows - workflow_id: 167582, 203470, 203471, 434862, 501517, 50473775 - access_token: ${{ github.token }} \ No newline at end of file diff --git a/.github/workflows/examples-mpi.yml b/.github/workflows/examples-mpi.yml index 6c462975807..cddf0a166c0 100644 --- a/.github/workflows/examples-mpi.yml +++ b/.github/workflows/examples-mpi.yml @@ -7,6 +7,10 @@ env: OUTPUT_PATH: ${{ github.workspace }} ENVHOME: "/home/devito/environments" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: # Trigger the workflow on push or pull request, # but only for the master branch diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index f260a69b8d3..bd39f4ac3e5 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -1,5 +1,9 @@ name: Examples +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: # Trigger the workflow on push or pull request, # but only for the master branch diff --git a/.github/workflows/flake8.yml b/.github/workflows/flake8.yml index 104a79c75b8..56c5a06a3ed 100644 --- a/.github/workflows/flake8.yml +++ b/.github/workflows/flake8.yml @@ -1,5 +1,9 @@ name: Flake8 +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: # Trigger the workflow on push or pull request, # but only for the master branch diff --git a/.github/workflows/pytest-aws.yaml b/.github/workflows/pytest-aws.yaml index f57b83fef97..4a193ec9565 100644 --- a/.github/workflows/pytest-aws.yaml +++ b/.github/workflows/pytest-aws.yaml @@ -1,5 +1,9 @@ name: aws-ci +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: # Trigger the workflow on push or pull request, # but only for the master branch diff --git a/.github/workflows/pytest-core-mpi.yml b/.github/workflows/pytest-core-mpi.yml index 4774fe517dc..57d2c5b2fce 100644 --- a/.github/workflows/pytest-core-mpi.yml +++ b/.github/workflows/pytest-core-mpi.yml @@ -1,5 +1,9 @@ name: CI-mpi +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: # Trigger the workflow on push or pull request, # but only for the master branch diff --git a/.github/workflows/pytest-core-nompi.yml b/.github/workflows/pytest-core-nompi.yml index 5f5d3b0f37f..7a8958210ec 100644 --- a/.github/workflows/pytest-core-nompi.yml +++ b/.github/workflows/pytest-core-nompi.yml @@ -1,5 +1,9 @@ name: CI-core +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: # Trigger the workflow on push or pull request, # but only for the master branch diff --git a/.github/workflows/pytest-gpu.yml b/.github/workflows/pytest-gpu.yml index 31563c2a65d..29703d94c09 100644 --- a/.github/workflows/pytest-gpu.yml +++ b/.github/workflows/pytest-gpu.yml @@ -5,6 +5,10 @@ name: CI-gpu +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: OUTPUT_PATH: ${{ github.workspace }} RESOURCE_GROUP: CI-gpu diff --git a/.github/workflows/tutorials.yml b/.github/workflows/tutorials.yml index 32c4e1b65bc..13e2a1159cc 100644 --- a/.github/workflows/tutorials.yml +++ b/.github/workflows/tutorials.yml @@ -1,5 +1,9 @@ name: Jupyter Notebooks +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + on: # Trigger the workflow on push or pull request, # but only for the master branch