File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,8 +14,22 @@ name: "CodeQL Advanced"
1414on :
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
91105 - name : Perform CodeQL Analysis
92106 uses : github/codeql-action/analyze@v4
93107 with :
94- category : " /language:${{matrix.language}}"
108+ category : " /language:${{matrix.language}}"
Original file line number Diff line number Diff line change 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
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
2347jobs :
Original file line number Diff line number Diff line change 11name : 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
513jobs :
614 build :
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
Original file line number Diff line number Diff line change 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
2340jobs :
2441 test :
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."
You can’t perform that action at this time.
0 commit comments