Skip to content

Commit

Permalink
move concurrency to each file, I do not succeed to get parent job_id
Browse files Browse the repository at this point in the history
  • Loading branch information
skoudoro committed Mar 27, 2023
1 parent c6c68da commit 7e9397e
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/coverage.yml
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ master ]

concurrency:
group: build-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
cov:
uses: ./.github/workflows/test_template.yml
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -11,6 +11,11 @@ on:
schedule:
- cron: '0 0 5 * 0' # 1 per month


concurrency:
group: build-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
pip:
uses: ./.github/workflows/test_template.yml
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_compat.yml
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ master ]

concurrency:
group: build-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
minimal-py38:
uses: ./.github/workflows/test_template.yml
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_optional.yml
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ master ]

concurrency:
group: build-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
pip:
uses: ./.github/workflows/test_template.yml
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_parallel.yml
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ master ]

concurrency:
group: build-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
pip:
uses: ./.github/workflows/test_template.yml
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_pre.yml
Expand Up @@ -6,6 +6,10 @@ on:
pull_request:
branches: [ master ]

concurrency:
group: build-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
PRE:
uses: ./.github/workflows/test_template.yml
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/test_template.yml
Expand Up @@ -49,10 +49,6 @@ defaults:
run:
shell: bash

concurrency:
group: build-${{ github.workflow }}-${{ github.job }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test_viz.yml
Expand Up @@ -12,6 +12,10 @@ on:
- dipy/viz/**
- dipy/workflows/**

concurrency:
group: build-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
VIZ:
uses: ./.github/workflows/test_template.yml
Expand Down

0 comments on commit 7e9397e

Please sign in to comment.