Skip to content

Commit 2fafeb4

Browse files
Merge pull request #798 from microsoft/psl-filter-paths
fix: Filter file the paths for pipeline run
2 parents 0a42e28 + 45d9c08 commit 2fafeb4

File tree

6 files changed

+51
-4
lines changed

6 files changed

+51
-4
lines changed

.github/workflows/azure-dev.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Azure Dev Deploy
22
on:
33
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'infra/**'
9+
- 'azure*.yaml'
10+
- '.github/workflows/azure-dev.yml'
11+
412

513
permissions:
614
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/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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
- 'src/backend/**'
1111
- 'src/App/**'
1212
- 'src/App/server/**'
13-
- '.github/workflows/docker-build.yml'
14-
pull_request:
13+
- 'src/App/WebApp.Dockerfile'
14+
- 'src/App/.dockerignore'
1515
types:
1616
- opened
1717
- ready_for_review
@@ -25,13 +25,20 @@ on:
2525
- 'src/backend/**'
2626
- 'src/App/**'
2727
- 'src/App/server/**'
28+
- 'src/App/WebApp.Dockerfile'
29+
- 'src/App/.dockerignore'
2830
- '.github/workflows/docker-build.yml'
2931
workflow_dispatch:
3032

3133
permissions:
3234
contents: read
3335
actions: read
3436
id-token: write # Required for OIDC-based Azure authentication
37+
38+
concurrency:
39+
group: docker-build-${{ github.ref }}
40+
cancel-in-progress: true
41+
3542
jobs:
3643
build-and-push:
3744
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)