Skip to content

Commit

Permalink
Merge pull request numpy#21110 from HarshCasper/concurrency
Browse files Browse the repository at this point in the history
CI: Improve concurrency to cancel running jobs on PR update
  • Loading branch information
mattip authored Feb 24, 2022
2 parents edbdd7f + a333c5a commit a33a10a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]')"
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a33a10a

Please sign in to comment.