Skip to content
16 changes: 15 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,22 @@ name: "CodeQL Advanced"
on:
push:
branches: [ "main", "dev", "demo" ]
paths:
- 'src/**/*.py'
- 'src/**/*.js'
- 'src/**/*.ts'
- 'src/**/*.tsx'
- 'tests/**/*.py'
- '.github/workflows/codeql.yml'
pull_request:
branches: [ "main", "dev", "demo" ]
paths:
- 'src/**/*.py'
- 'src/**/*.js'
- 'src/**/*.ts'
- 'src/**/*.tsx'
- 'tests/**/*.py'
- '.github/workflows/codeql.yml'
schedule:
- cron: '44 20 * * 2'

Expand Down Expand Up @@ -91,4 +105,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
category: "/language:${{matrix.language}}"
33 changes: 32 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,37 @@
name: Validate Deployment v3

on:
push:
branches:
- main
- dev-v3
- hotfix
paths:
- 'infra/main.bicep'
- 'infra/modules/**/*.bicep'
- 'infra/*.parameters.json'
- 'infra/scripts/**'
- '.github/workflows/deploy.yml'
- 'azure.yaml'
- 'azure_custom.yaml'
pull_request:
types:
- opened
- ready_for_review
- reopened
- synchronize
branches:
- main
- dev-v3
- hotfix
paths:
- 'infra/main.bicep'
- 'infra/modules/**/*.bicep'
- 'infra/*.parameters.json'
- 'infra/scripts/**'
- '.github/workflows/deploy.yml'
- 'azure.yaml'
- 'azure_custom.yaml'
workflow_run:
workflows: ["Build Docker and Optional Push v3"]
types:
Expand Down Expand Up @@ -385,4 +416,4 @@ jobs:
if: always()
run: |
az logout
echo "Logged out from Azure."
echo "Logged out from Azure."
10 changes: 10 additions & 0 deletions .github/workflows/docker-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
- dev-v3
- demo-v3
- hotfix
paths:
- 'src/frontend/**'
- 'src/backend/**'
- 'src/mcp_server/**'
- '.github/workflows/docker-build-and-push.yml'
pull_request:
types:
- opened
Expand All @@ -18,6 +23,11 @@ on:
- dev-v3
- demo-v3
- hotfix
paths:
- 'src/frontend/**'
- 'src/backend/**'
- 'src/mcp_server/**'
- '.github/workflows/docker-build-and-push.yml'
workflow_dispatch:

jobs:
Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
name: PyLint

on: [push]
on:
push:
paths:
- 'src/backend/**/*.py'
- 'src/mcp_server/**/*.py'
- 'src/backend/requirements.txt'
- '.flake8'
- '.github/workflows/pylint.yml'
pull_request:
paths:
- 'src/backend/**/*.py'
- 'src/mcp_server/**/*.py'
- 'src/backend/requirements.txt'
- '.flake8'
- '.github/workflows/pylint.yml'

jobs:
build:
Expand All @@ -24,4 +38,4 @@ jobs:

- name: Run flake8 and pylint
run: |
flake8 --config=.flake8 src/backend # Specify the directory to lint
flake8 --config=.flake8 src/backend
21 changes: 19 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,35 @@ on:
- dev
- demo
- hotfix
paths:
- 'src/backend/**/*.py'
- 'src/tests/**/*.py'
- 'src/mcp_server/**/*.py'
- 'src/**/pyproject.toml'
- 'pytest.ini'
- 'conftest.py'
- 'src/backend/requirements.txt'
- '.github/workflows/test.yml'
pull_request:
types:
- opened
- ready_for_review
- reopened
- synchronize
branches:
- main
- main
- dev
- demo
- hotfix
paths:
- 'src/backend/**/*.py'
- 'src/tests/**/*.py'
- 'src/mcp_server/**/*.py'
- 'pytest.ini'
- 'conftest.py'
- 'src/backend/requirements.txt'
- 'src/**/pyproject.toml'
- '.github/workflows/test.yml'

jobs:
test:
Expand Down Expand Up @@ -73,4 +90,4 @@ jobs:
- name: Skip coverage report if no tests
if: env.skip_tests == 'true'
run: |
echo "Skipping coverage report because no tests were found."
echo "Skipping coverage report because no tests were found."
Loading