diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5a802c678e20..cfdae016836f1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,8 @@ name: CI on: push: - branches: [master] + branches: + - master pull_request: branches: - master @@ -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 @@ -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: @@ -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: diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml index 292598dfcab73..1d163719cd42b 100644 --- a/.github/workflows/database.yml +++ b/.github/workflows/database.yml @@ -2,7 +2,8 @@ name: Database on: push: - branches: [master] + branches: + - master pull_request: branches: - master @@ -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 diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index cb7d3fb5cabcf..67ea0e79d04e3 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -2,7 +2,8 @@ name: Posix on: push: - branches: [master] + branches: + - master pull_request: branches: - master @@ -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 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 723347913ac38..dcb33b21a8ae1 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -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 diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 38b1aa9ae7047..8ccf89c73704c 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -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: