Skip to content

Commit 1aa2ab0

Browse files
Merge pull request #300 from Harmanpreet-Microsoft/dev
ci: update workflows to enhance deployment automation, and refine test/lint triggers
2 parents 31fd2e8 + b9265ef commit 1aa2ab0

4 files changed

Lines changed: 43 additions & 2 deletions

File tree

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ 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'
16+
- 'infra/**'
17+
- 'scripts/**'
18+
- 'azure.yaml'
19+
- '.github/workflows/deploy.yml'
1020
pull_request:
1121
branches:
1222
- main
@@ -18,6 +28,16 @@ on:
1828
- ready_for_review
1929
- reopened
2030
- synchronize
31+
paths:
32+
- 'src/backend/**'
33+
- 'src/frontend/**'
34+
- 'docker/**'
35+
- '.github/workflows/build-docker-images.yml'
36+
- '.github/workflows/build-docker.yml'
37+
- 'infra/**'
38+
- 'scripts/**'
39+
- 'azure.yaml'
40+
- '.github/workflows/deploy.yml'
2141
merge_group:
2242
workflow_dispatch:
2343

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,4 +438,4 @@ jobs:
438438
if: always()
439439
run: |
440440
az logout
441-
echo "Logged out from Azure."
441+
echo "Logged out from Azure."

.github/workflows/pylint.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
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'
411

512
jobs:
613
lint:

.github/workflows/test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ 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/frontend/requirements.txt'
15+
- 'src/backend/pyproject.toml'
916
pull_request:
1017
types:
1118
- opened
@@ -16,6 +23,13 @@ on:
1623
- main
1724
- dev
1825
- demo
26+
paths:
27+
- 'src/backend/**/*.py'
28+
- 'src/tests/backend/**'
29+
- '.github/workflows/test.yml'
30+
- 'src/backend/requirements.txt'
31+
- 'src/frontend/requirements.txt'
32+
- 'src/backend/pyproject.toml'
1933

2034
jobs:
2135
# frontend_tests:

0 commit comments

Comments
 (0)