Skip to content

Commit

Permalink
Set a concurrency limit in CI (#510)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Feb 14, 2022
1 parent 171e4fb commit 64b183e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docs.yml
Expand Up @@ -8,6 +8,10 @@ on:
paths:
- 'docs/**'

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

jobs:
docs:
name: nox -s docs
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Expand Up @@ -8,6 +8,10 @@ on:
paths:
- "**.py"

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

jobs:
lint:
name: nox -s lint
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -10,6 +10,10 @@ on:
- ".github/workflows/test.yml"
- "**.py"

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

jobs:
test:
name: ${{ matrix.os }} / ${{ matrix.python_version }}
Expand Down

0 comments on commit 64b183e

Please sign in to comment.