Skip to content

Commit 3890623

Browse files
Merge pull request #684 from microsoft/PSL-US-27513
ci: Execute CI/CD workflows only when relevant files are modified
2 parents fb2e4ea + ec24e82 commit 3890623

File tree

6 files changed

+56
-13
lines changed

6 files changed

+56
-13
lines changed

.github/workflows/codeql.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ name: "CodeQL"
1414
on:
1515
push:
1616
branches: [ "main" ]
17+
paths:
18+
- '**/*.py'
19+
- '.github/workflows/codeql.yml'
1720
pull_request:
1821
# The branches below must be a subset of the branches above
1922
branches: [ "main" ]
23+
paths:
24+
- '**/*.py'
25+
- '.github/workflows/codeql.yml'
2026
schedule:
2127
- cron: '17 11 * * 0'
2228

.github/workflows/deploy-linux.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,24 @@
11
name: Deploy-Test-Cleanup Linux
22
on:
3-
push:
3+
pull_request:
44
branches:
55
- main
6+
paths:
7+
- 'src/App/**/*.js'
8+
- 'src/App/**/*.jsx'
9+
- 'src/App/**/*.ts'
10+
- 'src/App/**/*.tsx'
11+
- 'src/App/**/*.html'
12+
- 'src/App/**/*.css'
13+
- 'src/App/**/*.scss'
14+
- 'src/App/**/*.json'
15+
- 'src/**/*.py'
16+
- 'src/api/requirements.txt'
17+
- 'src/**/*.Dockerfile'
18+
- 'infra/**/*.bicep'
19+
- 'infra/**/*.json'
20+
- 'azure.yaml'
21+
- '.github/workflows/deploy-*.yml'
622
workflow_dispatch:
723
inputs:
824
azure_location:
@@ -12,13 +28,14 @@ on:
1228
type: choice
1329
options:
1430
- 'australiaeast'
15-
- 'centralus'
16-
- 'eastasia'
31+
- 'eastus'
1732
- 'eastus2'
33+
- 'francecentral'
1834
- 'japaneast'
19-
- 'northeurope'
20-
- 'southeastasia'
35+
- 'swedencentral'
2136
- 'uksouth'
37+
- 'westus'
38+
- 'westus2'
2239
resource_group_name:
2340
description: 'Resource Group Name (Optional)'
2441
required: false

.github/workflows/deploy-windows.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Deploy-Test-Cleanup Windows
22
on:
3-
push:
4-
branches:
5-
- main
3+
# push:
4+
# branches:
5+
# - main
66
workflow_dispatch:
77
inputs:
88
azure_location:
@@ -12,13 +12,14 @@ on:
1212
type: choice
1313
options:
1414
- 'australiaeast'
15-
- 'centralus'
16-
- 'eastasia'
15+
- 'eastus'
1716
- 'eastus2'
17+
- 'francecentral'
1818
- 'japaneast'
19-
- 'northeurope'
20-
- 'southeastasia'
19+
- 'swedencentral'
2120
- 'uksouth'
21+
- 'westus'
22+
- 'westus2'
2223
resource_group_name:
2324
description: 'Resource Group Name (Optional)'
2425
required: false

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
push:
66
branches:
77
- main
8+
paths:
9+
- 'docs/workshop/**'
10+
- '.github/workflows/deploy.yml'
811

912
permissions:
1013
contents: write

.github/workflows/pylint.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: PyLint
22

3-
on: [push]
3+
on:
4+
push:
5+
paths:
6+
- 'src/**/*.py'
7+
- 'src/api/requirements*.txt'
8+
- '.flake8'
9+
- '.github/workflows/pylint.yml'
410

511
jobs:
612
build:

.github/workflows/test.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
- dev
88
- demo
99
- psl-backend-unittest
10+
paths:
11+
- 'src/**/*.py'
12+
- 'src/tests/**'
13+
- 'src/api/requirements*.txt'
14+
- '.github/workflows/test.yml'
1015
pull_request:
1116
types:
1217
- opened
@@ -17,6 +22,11 @@ on:
1722
- main
1823
- dev
1924
- demo
25+
paths:
26+
- 'src/**/*.py'
27+
- 'src/tests/**'
28+
- 'src/api/requirements*.txt'
29+
- '.github/workflows/test.yml'
2030

2131
jobs:
2232
# frontend_tests:

0 commit comments

Comments
 (0)