diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.yml index cdd6eeb9..edeabddb 100644 --- a/.github/workflows/build-docker-image.yml +++ b/.github/workflows/build-docker-image.yml @@ -3,9 +3,46 @@ name: Build and Push Docker Images on: push: branches: [main, dev, demo, hotfix] + paths: + - 'src/ContentProcessor/src/**' + - 'src/**/Dockerfile' + - 'src/**/requirements.txt' + - 'src/**/pyproject.toml' + - 'src/ContentProcessorAPI/app/**' + - 'src/ContentProcessorAPI/helpers/**' + - 'src/ContentProcessorWeb/src/**' + - 'src/ContentProcessorWeb/public/**' + - 'src/ContentProcessorWeb/package.json' + - 'src/ContentProcessorWeb/package-lock.json' + - 'src/ContentProcessorWeb/yarn.lock' + - 'src/ContentProcessorWeb/tsconfig.json' + - 'src/ContentProcessorWeb/config-overrides.js' + - 'src/ContentProcessorWeb/nginx-custom.conf' + - 'src/ContentProcessorWeb/env.sh' + - '.github/workflows/build-docker-image.yml' pull_request: branches: [main, dev, demo, hotfix] types: [opened, ready_for_review, reopened, synchronize] + paths: + - 'src/ContentProcessor/src/**' + - 'src/**/Dockerfile' + - 'src/**/requirements.txt' + - 'src/**/pyproject.toml' + - 'src/ContentProcessorAPI/app/**' + - 'src/ContentProcessorAPI/helpers/**' + - 'src/ContentProcessorWeb/src/**' + - 'src/ContentProcessorWeb/public/**' + - 'src/ContentProcessorWeb/package.json' + - 'src/ContentProcessorWeb/package-lock.json' + - 'src/ContentProcessorWeb/yarn.lock' + - 'src/ContentProcessorWeb/tsconfig.json' + - 'src/ContentProcessorWeb/config-overrides.js' + - 'src/ContentProcessorWeb/nginx-custom.conf' + - 'src/ContentProcessorWeb/env.sh' + - 'infra/**/*.bicep' + - 'infra/**/*.json' + - 'azure.yaml' + - '.github/workflows/build-docker-image.yml' workflow_dispatch: jobs: diff --git a/.github/workflows/deploy-linux.yml b/.github/workflows/deploy-linux.yml index 45c4d59b..e863b2e5 100644 --- a/.github/workflows/deploy-linux.yml +++ b/.github/workflows/deploy-linux.yml @@ -3,6 +3,23 @@ on: push: branches: - main + paths: + - 'src/ContentProcessor/src/**' + - 'src/**/Dockerfile' + - 'src/**/requirements.txt' + - 'src/**/pyproject.toml' + - 'src/ContentProcessorAPI/app/**' + - 'src/ContentProcessorAPI/helpers/**' + - 'src/ContentProcessorWeb/src/**' + - 'src/ContentProcessorWeb/public/**' + - 'src/ContentProcessorWeb/package.json' + - 'src/ContentProcessorWeb/package-lock.json' + - 'src/ContentProcessorWeb/yarn.lock' + - 'src/ContentProcessorWeb/tsconfig.json' + - 'src/ContentProcessorWeb/config-overrides.js' + - 'src/ContentProcessorWeb/nginx-custom.conf' + - 'src/ContentProcessorWeb/env.sh' + - '.github/workflows/deploy-linux.yml' workflow_dispatch: inputs: azure_location: diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0a759278..5f64e080 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,13 @@ on: push: branches: - main + paths: + - 'infra/**' + - 'src/**' + - 'tests/e2e-test/**' + - 'azure.yaml' + - '.github/workflows/deploy.yml' + - '.github/workflows/test-automation.yml' schedule: - cron: "0 9,21 * * *" # Runs at 9:00 AM and 9:00 PM GMT workflow_dispatch: diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 579e221d..0411a85c 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,6 +1,14 @@ name: PyLint -on: [push] +on: + push: + paths: + - 'src/**/*.py' + - 'tests/**/*.py' + - '.flake8' + - 'src/**/requirements.txt' + - 'src/**/pyproject.toml' + - '.github/workflows/pylint.yml' jobs: build: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 783c3afb..390db316 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,14 @@ on: - main - dev - demo + paths: + - 'src/**/*.py' + - 'tests/**/*.py' + - 'src/**/requirements.txt' + - 'src/**/pyproject.toml' + - 'src/**/pytest.ini' + - 'src/**/conftest.py' + - '.github/workflows/test.yml' pull_request: types: - opened @@ -16,6 +24,14 @@ on: - main - dev - demo + paths: + - 'src/**/*.py' + - 'tests/**/*.py' + - 'src/**/requirements.txt' + - 'src/**/pyproject.toml' + - 'src/**/pytest.ini' + - 'src/**/conftest.py' + - '.github/workflows/test.yml' jobs: backend_tests: