Skip to content

Commit 37b9fce

Browse files
author
Harmanpreet Kaur
committed
Update CI workflows: enhance path triggers for Docker build, deploy, PyLint, and test workflows
1 parent 1c3f5a7 commit 37b9fce

4 files changed

Lines changed: 52 additions & 12 deletions

File tree

.github/workflows/build-docker-images.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
- dev
88
- demo
99
- hotfix
10+
paths:
11+
- 'src/backend/**'
12+
- 'src/frontend/**'
13+
- 'docker/**'
14+
- '.github/workflows/build-docker-images.yml'
15+
- '.github/workflows/build-docker.yml'
1016
pull_request:
1117
branches:
1218
- main
@@ -18,6 +24,12 @@ on:
1824
- ready_for_review
1925
- reopened
2026
- synchronize
27+
paths:
28+
- 'src/backend/**'
29+
- 'src/frontend/**'
30+
- 'docker/**'
31+
- '.github/workflows/build-docker-images.yml'
32+
- '.github/workflows/build-docker.yml'
2133
merge_group:
2234
workflow_dispatch:
2335

.github/workflows/deploy.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
name: Deploy-Test-Cleanup Pipeline
22

33
on:
4-
workflow_run:
5-
workflows: ["Build Docker and Optional Push"]
6-
types:
7-
- completed
8-
branches:
9-
- main
10-
- dev
11-
- demo
12-
schedule:
13-
- cron: '0 5,17 * * *' # Runs at 5:00 AM and 5:00 PM GMT
14-
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
- demo
9+
paths:
10+
- 'infra/**'
11+
- 'scripts/**'
12+
- 'azure.yaml'
13+
- '.github/workflows/deploy.yml'
14+
schedule:
15+
- cron: '0 5,17 * * *' # Runs at 5:00 AM and 5:00 PM GMT
16+
workflow_dispatch:
1517

1618
env:
1719
GPT_MIN_CAPACITY: 150

.github/workflows/pylint.yml

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

3-
on: [push]
3+
on:
4+
push:
5+
paths:
6+
- '**/*.py'
7+
- '**/requirements.txt'
8+
- '**/pyproject.toml'
9+
- '**/.flake8'
10+
- '.github/workflows/pylint.yml'
11+
pull_request:
12+
paths:
13+
- '**/*.py'
14+
- '**/requirements.txt'
15+
- '**/pyproject.toml'
16+
- '**/.flake8'
17+
- '.github/workflows/pylint.yml'
418

519
jobs:
620
lint:

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ on:
66
- main
77
- dev
88
- demo
9+
paths:
10+
- 'src/backend/**/*.py'
11+
- 'src/tests/backend/**'
12+
- '.github/workflows/test.yml'
13+
- 'src/backend/requirements.txt'
14+
- 'src/backend/pyproject.toml'
915
pull_request:
1016
types:
1117
- opened
@@ -16,6 +22,12 @@ on:
1622
- main
1723
- dev
1824
- demo
25+
paths:
26+
- 'src/backend/**/*.py'
27+
- 'src/tests/backend/**'
28+
- '.github/workflows/test.yml'
29+
- 'src/backend/requirements.txt'
30+
- 'src/backend/pyproject.toml'
1931

2032
jobs:
2133
# frontend_tests:

0 commit comments

Comments
 (0)