Skip to content

CI: Try to not auto-cancel on master #44682

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 16 commits into from
Dec 1, 2021
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ jobs:
shell: bash -l {0}

concurrency:
group: ${{ github.ref }}-checks
cancel-in-progress: ${{github.event_name == 'pull_request'}}
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-checks
cancel-in-progress: true

steps:
- name: Checkout
Expand Down Expand Up @@ -102,7 +103,8 @@ jobs:
runs-on: ubuntu-latest

concurrency:
group: ${{ github.ref }}-web-docs
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-web-docs
cancel-in-progress: true

steps:
Expand Down Expand Up @@ -164,7 +166,8 @@ jobs:
matrix:
pattern: ["not slow and not network and not clipboard", "slow"]
concurrency:
group: ${{ github.ref }}-data_manager-${{ matrix.pattern }}
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-data_manager-${{ matrix.pattern }}
cancel-in-progress: true

steps:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ jobs:
fail-fast: false

concurrency:
group: ${{ github.ref }}-${{ matrix.ENV_FILE }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.ENV_FILE }}
cancel-in-progress: true

services:
mysql:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ jobs:
TEST_ARGS: ${{ matrix.settings[6] }}
PYTEST_TARGET: pandas
concurrency:
group: ${{ github.ref }}-${{ matrix.settings[0] }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.settings[0] }}
cancel-in-progress: true

steps:
- name: Checkout
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}-pre-commit
cancel-in-progress: ${{github.event_name == 'pull_request'}}
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-pre-commit
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/python-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ jobs:
timeout-minutes: 80

concurrency:
group: ${{ github.ref }}-${{ matrix.os }}-${{ matrix.pytest_target }}-dev
cancel-in-progress: ${{github.event_name == 'pull_request'}}
#https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.os }}-${{ matrix.pytest_target }}-dev
cancel-in-progress: true

steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/sdist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ jobs:
matrix:
python-version: ["3.8", "3.9", "3.10"]
concurrency:
group: ${{github.ref}}-${{matrix.python-version}}-sdist
cancel-in-progress: ${{github.event_name == 'pull_request'}}
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{matrix.python-version}}-sdist
cancel-in-progress: true

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