Skip to content

CI: enable auto-cancel for GitHub Actions #41962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: CI

on:
push:
branches: [master]
branches:
- master
pull_request:
branches:
- master
Expand All @@ -20,6 +21,10 @@ jobs:
run:
shell: bash -l {0}

concurrency:
group: ${{ github.ref }}-checks
cancel-in-progress: true

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -93,8 +98,12 @@ jobs:
web_and_docs:
name: Web and docs
runs-on: ubuntu-latest
steps:

concurrency:
group: ${{ github.ref }}-web-docs
cancel-in-progress: true

steps:
- name: Checkout
uses: actions/checkout@v2
with:
Expand Down Expand Up @@ -148,8 +157,11 @@ jobs:
strategy:
matrix:
pattern: ["not slow and not network and not clipboard", "slow"]
steps:
concurrency:
group: ${{ github.ref }}-data_manager-${{ matrix.pattern }}
cancel-in-progress: true

steps:
- name: Checkout
uses: actions/checkout@v2
with:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Database

on:
push:
branches: [master]
branches:
- master
pull_request:
branches:
- master
Expand All @@ -28,6 +29,10 @@ jobs:
ENV_FILE: [ci/deps/actions-37-db-min.yaml, ci/deps/actions-37-db.yaml]
fail-fast: false

concurrency:
group: ${{ github.ref }}-${{ matrix.ENV_FILE }}
cancel-in-progress: true

services:
mysql:
image: mysql
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Posix

on:
push:
branches: [master]
branches:
- master
pull_request:
branches:
- master
Expand Down Expand Up @@ -43,6 +44,9 @@ jobs:
LC_ALL: ${{ matrix.settings[4] }}
PANDAS_TESTING_MODE: ${{ matrix.settings[5] }}
TEST_ARGS: ${{ matrix.settings[6] }}
concurrency:
group: ${{ github.ref }}-${{ matrix.settings[0] }}
cancel-in-progress: true

steps:
- name: Checkout
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ name: pre-commit
on:
pull_request:
push:
branches: [master]
branches:
- master

jobs:
pre-commit:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}-pre-commit
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/python-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
name: actions-310-dev
timeout-minutes: 60

concurrency:
group: ${{ github.ref }}-dev
cancel-in-progress: true

steps:
- uses: actions/checkout@v2
with:
Expand Down