Skip to content

Commit fdd4af7

Browse files
Merge pull request #721 from Harmanpreet-Microsoft/dev-v3
ci: update workflows for v3 branches, enhance deployment automation, and refine test/lint triggers
2 parents f9f6aab + 0882547 commit fdd4af7

4 files changed

Lines changed: 68 additions & 5 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,22 @@ name: "CodeQL Advanced"
1414
on:
1515
push:
1616
branches: [ "main", "dev", "demo" ]
17+
paths:
18+
- 'src/**/*.py'
19+
- 'src/**/*.js'
20+
- 'src/**/*.ts'
21+
- 'src/**/*.tsx'
22+
- 'tests/**/*.py'
23+
- '.github/workflows/codeql.yml'
1724
pull_request:
1825
branches: [ "main", "dev", "demo" ]
26+
paths:
27+
- 'src/**/*.py'
28+
- 'src/**/*.js'
29+
- 'src/**/*.ts'
30+
- 'src/**/*.tsx'
31+
- 'tests/**/*.py'
32+
- '.github/workflows/codeql.yml'
1933
schedule:
2034
- cron: '44 20 * * 2'
2135

@@ -91,4 +105,4 @@ jobs:
91105
- name: Perform CodeQL Analysis
92106
uses: github/codeql-action/analyze@v4
93107
with:
94-
category: "/language:${{matrix.language}}"
108+
category: "/language:${{matrix.language}}"

.github/workflows/docker-build-and-push.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ on:
77
- dev-v4
88
- demo-v4
99
- hotfix
10+
paths:
11+
- 'src/frontend/**'
12+
- 'src/backend/**'
13+
- 'src/mcp_server/**'
14+
- '.github/workflows/docker-build-and-push.yml'
15+
- 'infra/main.bicep'
16+
- 'infra/modules/**/*.bicep'
17+
- 'infra/*.parameters.json'
18+
- 'infra/scripts/**'
19+
- '.github/workflows/deploy.yml'
20+
- 'azure.yaml'
21+
- 'azure_custom.yaml'
1022
pull_request:
1123
types:
1224
- opened
@@ -18,6 +30,18 @@ on:
1830
- dev-v4
1931
- demo-v4
2032
- hotfix
33+
paths:
34+
- 'src/frontend/**'
35+
- 'src/backend/**'
36+
- 'src/mcp_server/**'
37+
- '.github/workflows/docker-build-and-push.yml'
38+
- 'infra/main.bicep'
39+
- 'infra/modules/**/*.bicep'
40+
- 'infra/*.parameters.json'
41+
- 'infra/scripts/**'
42+
- '.github/workflows/deploy.yml'
43+
- 'azure.yaml'
44+
- 'azure_custom.yaml'
2145
workflow_dispatch:
2246

2347
jobs:

.github/workflows/pylint.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: PyLint
22

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

513
jobs:
614
build:
@@ -24,4 +32,4 @@ jobs:
2432
2533
- name: Run flake8 and pylint
2634
run: |
27-
flake8 --config=.flake8 src/backend # Specify the directory to lint
35+
flake8 --config=.flake8 src/backend

.github/workflows/test.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,35 @@ on:
77
- dev
88
- demo
99
- hotfix
10+
paths:
11+
- 'src/backend/**/*.py'
12+
- 'src/tests/**/*.py'
13+
- 'src/mcp_server/**/*.py'
14+
- 'src/**/pyproject.toml'
15+
- 'pytest.ini'
16+
- 'conftest.py'
17+
- 'src/backend/requirements.txt'
18+
- '.github/workflows/test.yml'
1019
pull_request:
1120
types:
1221
- opened
1322
- ready_for_review
1423
- reopened
1524
- synchronize
1625
branches:
17-
- main
1826
- main
1927
- dev
2028
- demo
2129
- hotfix
30+
paths:
31+
- 'src/backend/**/*.py'
32+
- 'src/tests/**/*.py'
33+
- 'src/mcp_server/**/*.py'
34+
- 'pytest.ini'
35+
- 'conftest.py'
36+
- 'src/backend/requirements.txt'
37+
- 'src/**/pyproject.toml'
38+
- '.github/workflows/test.yml'
2239

2340
jobs:
2441
test:
@@ -73,4 +90,4 @@ jobs:
7390
- name: Skip coverage report if no tests
7491
if: env.skip_tests == 'true'
7592
run: |
76-
echo "Skipping coverage report because no tests were found."
93+
echo "Skipping coverage report because no tests were found."

0 commit comments

Comments
 (0)