Skip to content

Commit dcfd389

Browse files
Filter the paths for pipeline run
1 parent 47e087c commit dcfd389

File tree

7 files changed

+56
-2
lines changed

7 files changed

+56
-2
lines changed

.github/workflows/azure-dev.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- main
7+
paths:
8+
- 'infra/**'
9+
- 'azure*.yaml'
10+
- '.github/workflows/azure-dev.yml'
711

812
permissions:
913
contents: read

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
schedule:
1515
- cron: '17 11 * * 0'
1616

17+
concurrency:
18+
group: codeql-${{ github.ref }}
19+
cancel-in-progress: true
20+
1721
jobs:
1822
analyze:
1923
name: Analyze

.github/workflows/create-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ name: "Create Release"
33
on:
44
push:
55
branches: ["main"]
6+
paths-ignore:
7+
- 'docs/**'
8+
- '**/*.md'
9+
- 'LICENSE'
10+
- '**/*.png'
11+
- '**/*.svg'
12+
- '**/*.jpg'
13+
- '**/*.jpeg'
14+
- '**/*.gif'
615

716
workflow_dispatch:
817

.github/workflows/deploy-v2.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ on:
66
paths:
77
- 'src/**'
88
- '!src/tests/**'
9+
- '!src/pytest.ini'
910
- 'infra/**/*.bicep'
1011
- 'infra/**/*.json'
12+
- 'infra/scripts/**'
1113
- '*.yaml'
1214
- 'scripts/**'
1315
- '.github/workflows/deploy-*.yml'

.github/workflows/docker-build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
- 'src/backend/**'
1111
- 'src/app/frontend/**'
1212
- 'src/app/frontend-server/**'
13+
- 'src/app/WebApp.Dockerfile'
14+
- 'src/app/.dockerignore'
1315
- '.github/workflows/docker-build.yml'
1416
pull_request:
1517
types:
@@ -25,13 +27,20 @@ on:
2527
- 'src/backend/**'
2628
- 'src/app/frontend/**'
2729
- 'src/app/frontend-server/**'
30+
- 'src/app/WebApp.Dockerfile'
31+
- 'src/app/.dockerignore'
2832
- '.github/workflows/docker-build.yml'
2933
workflow_dispatch:
3034

3135
permissions:
3236
contents: read
3337
actions: read
3438
id-token: write # Required for OIDC-based Azure authentication
39+
40+
concurrency:
41+
group: docker-build-${{ github.ref }}
42+
cancel-in-progress: true
43+
3544
jobs:
3645
build-and-push:
3746
runs-on: ubuntu-latest

.github/workflows/pylint.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@ name: PyLint
22

33
on:
44
push:
5+
branches:
6+
- main
7+
- dev
8+
paths:
9+
- 'src/backend/**/*.py'
10+
- 'src/backend/requirements*.txt'
11+
- '.flake8'
12+
- '.github/workflows/pylint.yml'
13+
pull_request:
14+
branches:
15+
- main
16+
- dev
517
paths:
618
- 'src/backend/**/*.py'
719
- 'src/backend/requirements*.txt'
@@ -12,6 +24,10 @@ permissions:
1224
contents: read
1325
actions: read
1426

27+
concurrency:
28+
group: pylint-${{ github.ref }}
29+
cancel-in-progress: true
30+
1531
jobs:
1632
build:
1733
runs-on: ubuntu-latest
@@ -25,6 +41,8 @@ jobs:
2541
uses: actions/setup-python@v6
2642
with:
2743
python-version: ${{ matrix.python-version }}
44+
cache: 'pip'
45+
cache-dependency-path: src/backend/requirements*.txt
2846

2947
- name: Install dependencies
3048
run: |

.github/workflows/test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ on:
66
- main
77
- dev
88
paths:
9-
- '**/*.py'
9+
- 'src/**/*.py'
1010
- 'src/backend/requirements*.txt'
11+
- 'src/pytest.ini'
1112
- '.github/workflows/test.yml'
1213
pull_request:
1314
types:
@@ -19,14 +20,19 @@ on:
1920
- main
2021
- dev
2122
paths:
22-
- '**/*.py'
23+
- 'src/**/*.py'
2324
- 'src/backend/requirements*.txt'
25+
- 'src/pytest.ini'
2426
- '.github/workflows/test.yml'
2527

2628
permissions:
2729
contents: read
2830
actions: read
2931

32+
concurrency:
33+
group: test-${{ github.ref }}
34+
cancel-in-progress: true
35+
3036
jobs:
3137
backend_tests:
3238
runs-on: ubuntu-latest
@@ -39,6 +45,8 @@ jobs:
3945
uses: actions/setup-python@v6
4046
with:
4147
python-version: "3.11"
48+
cache: 'pip'
49+
cache-dependency-path: src/backend/requirements*.txt
4250

4351
- name: Install Backend Dependencies
4452
run: |

0 commit comments

Comments
 (0)