Skip to content

Commit

Permalink
adds concurrency and ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
ademariag committed Sep 10, 2023
1 parent b5bd173 commit 67f5272
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
---
name: Docker Build and Push

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

on:
push:
branches:
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/python-black.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
---
name: Python Lint

concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
- 'requirements.docs.txt'
- 'mkdocs.yml'
- 'CNAME'

pull_request:
paths-ignore:
- 'docs/**'
- 'requirements.docs.txt'
- 'mkdocs.yml'
- 'CNAME'

jobs:
lint:
runs-on: ubuntu-latest
Expand Down
16 changes: 11 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
---
name: Python Tests
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true

on:
push:
paths-ignore:
- 'docs/**'
- 'requirements.docs.txt'
- 'mkdocs.yml'
- 'CNAME'
branches:
- master

pull_request:
paths-ignore:
- 'docs/**'
workflow_run:
workflows:
- Python Lint
types:
- completed
- 'requirements.docs.txt'
- 'mkdocs.yml'
- 'CNAME'

jobs:
test:
Expand Down

0 comments on commit 67f5272

Please sign in to comment.