Skip to content

Commit

Permalink
CI: cancel in-progress jobs when new commit (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjstewart authored Feb 8, 2023
1 parent 2d9c74a commit d897e33
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: "labeler"
on:
- pull_request_target

jobs:
label:
runs-on: ubuntu-latest
Expand All @@ -10,3 +9,6 @@ jobs:
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
sync-labels: true
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,6 @@ jobs:
env:
MLHUB_API_KEY: ${{ secrets.MLHUB_API_KEY }}
run: pytest --nbmake docs/tutorials --durations=10
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
3 changes: 3 additions & 0 deletions .github/workflows/style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,6 @@ jobs:
pip list
- name: Run pyupgrade checks
run: pyupgrade --py38-plus $(find . -path ./docs/src -prune -o -name "*.py" -print)
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
3 changes: 3 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,6 @@ jobs:
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

0 comments on commit d897e33

Please sign in to comment.