Unverified Commit 4110d1f0 authored by Frank Lee's avatar Frank Lee Committed by GitHub
Browse files

[workflow] cancel duplicated workflow jobs (#3960)

parent bd1ab981
...@@ -60,6 +60,9 @@ jobs: ...@@ -60,6 +60,9 @@ jobs:
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: false
steps: steps:
- name: Copy testmon cache - name: Copy testmon cache
run: | # branch name may contain slash, we need to replace it with space run: | # branch name may contain slash, we need to replace it with space
...@@ -83,6 +86,9 @@ jobs: ...@@ -83,6 +86,9 @@ jobs:
changedLibraryFiles: ${{ steps.find-lib-change.outputs.all_changed_files }} changedLibraryFiles: ${{ steps.find-lib-change.outputs.all_changed_files }}
anyLibraryFileChanged: ${{ steps.find-lib-change.outputs.any_changed }} anyLibraryFileChanged: ${{ steps.find-lib-change.outputs.any_changed }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: false
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
...@@ -140,6 +146,9 @@ jobs: ...@@ -140,6 +146,9 @@ jobs:
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: false
steps: steps:
- name: Checkout TensorNVMe - name: Checkout TensorNVMe
uses: actions/checkout@v2 uses: actions/checkout@v2
......
...@@ -12,6 +12,9 @@ jobs: ...@@ -12,6 +12,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }} matrix: ${{ steps.set-matrix.outputs.matrix }}
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: false
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- id: set-matrix - id: set-matrix
...@@ -40,6 +43,9 @@ jobs: ...@@ -40,6 +43,9 @@ jobs:
image: ${{ matrix.container }} image: ${{ matrix.container }}
options: --gpus all --rm -v /data/scratch/cifar-10:/data/scratch/cifar-10 options: --gpus all --rm -v /data/scratch/cifar-10:/data/scratch/cifar-10
timeout-minutes: 120 timeout-minutes: 120
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: false
steps: steps:
- name: Install dependencies - name: Install dependencies
run: | run: |
......
...@@ -16,6 +16,9 @@ jobs: ...@@ -16,6 +16,9 @@ jobs:
github.event.pull_request.draft == false && github.event.pull_request.draft == false &&
github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: false
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
...@@ -31,6 +34,9 @@ jobs: ...@@ -31,6 +34,9 @@ jobs:
github.event.pull_request.draft == false && github.event.pull_request.draft == false &&
github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI' github.event.pull_request.base.repo.full_name == 'hpcaitech/ColossalAI'
runs-on: ubuntu-latest runs-on: ubuntu-latest
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: false
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
......
...@@ -19,6 +19,9 @@ jobs: ...@@ -19,6 +19,9 @@ jobs:
outputs: outputs:
any_changed: ${{ steps.changed-files.outputs.any_changed }} any_changed: ${{ steps.changed-files.outputs.any_changed }}
changed_files: ${{ steps.changed-files.outputs.all_changed_files }} changed_files: ${{ steps.changed-files.outputs.all_changed_files }}
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: false
name: Detect changed example files name: Detect changed example files
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
...@@ -59,6 +62,9 @@ jobs: ...@@ -59,6 +62,9 @@ jobs:
defaults: defaults:
run: run:
shell: bash shell: bash
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: false
steps: steps:
- name: Checkout ColossalAI-Documentation - name: Checkout ColossalAI-Documentation
uses: actions/checkout@v2 uses: actions/checkout@v2
......
...@@ -20,6 +20,9 @@ jobs: ...@@ -20,6 +20,9 @@ jobs:
matrix: ${{ steps.setup-matrix.outputs.matrix }} matrix: ${{ steps.setup-matrix.outputs.matrix }}
anyChanged: ${{ steps.setup-matrix.outputs.anyChanged }} anyChanged: ${{ steps.setup-matrix.outputs.anyChanged }}
name: Detect changed example files name: Detect changed example files
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: false
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
...@@ -77,6 +80,9 @@ jobs: ...@@ -77,6 +80,9 @@ jobs:
image: hpcaitech/pytorch-cuda:1.12.0-11.3.0 image: hpcaitech/pytorch-cuda:1.12.0-11.3.0
options: --gpus all --rm -v /data/scratch/examples-data:/data/ options: --gpus all --rm -v /data/scratch/examples-data:/data/
timeout-minutes: 10 timeout-minutes: 10
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: false
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment