diff options
author | Matti Picus <matti.picus@gmail.com> | 2022-02-24 17:50:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-24 17:50:57 +0200 |
commit | a33a10a5f494057b9ddcb9efe650306fccf8eba3 (patch) | |
tree | a61b5f88080eadf369961c3eacebf8a68849fbc7 | |
parent | edbdd7ffc7e53807ce24d0708e89c41051621f52 (diff) | |
parent | a333c5a3f0f12ee607cac16f0a34bcc7d600861f (diff) | |
download | numpy-a33a10a5f494057b9ddcb9efe650306fccf8eba3.tar.gz |
Merge pull request #21110 from HarshCasper/concurrency
CI: Improve concurrency to cancel running jobs on PR update
-rw-r--r-- | .github/workflows/build_test.yml | 4 | ||||
-rw-r--r-- | .github/workflows/cygwin.yml | 5 | ||||
-rw-r--r-- | .github/workflows/wheels.yml | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 53983c407..3a9096ed6 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -18,6 +18,10 @@ env: DOWNLOAD_OPENBLAS: 1 PYTHON_VERSION: 3.8 +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: lint: if: "github.repository == 'numpy/numpy' && github.ref != 'refs/heads/main' && !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]') && !contains(github.event.head_commit.message, '[skip github]')" diff --git a/.github/workflows/cygwin.yml b/.github/workflows/cygwin.yml index 8bf7bd1a6..98c3c534a 100644 --- a/.github/workflows/cygwin.yml +++ b/.github/workflows/cygwin.yml @@ -9,6 +9,11 @@ on: pull_request: branches: - main + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: cygwin_build_test: runs-on: windows-latest diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 9390b8081..dda06fca1 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -21,6 +21,10 @@ on: pull_request: workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: get_commit_message: name: Get commit message |