diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index 81b7dc299..a60e8c405 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -1,6 +1,14 @@ name: Azure Dev Deploy on: workflow_dispatch: + push: + branches: + - main + paths: + - 'infra/**' + - 'azure*.yaml' + - '.github/workflows/azure-dev.yml' + permissions: contents: read diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index ac9b1b756..06d632978 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -14,6 +14,10 @@ on: schedule: - cron: '17 11 * * 0' +concurrency: + group: codeql-${{ github.ref }} + cancel-in-progress: true + jobs: analyze: name: Analyze diff --git a/.github/workflows/deploy-v2.yml b/.github/workflows/deploy-v2.yml index be2eb98f4..38d0d0090 100644 --- a/.github/workflows/deploy-v2.yml +++ b/.github/workflows/deploy-v2.yml @@ -6,8 +6,10 @@ on: paths: - 'src/**' - '!src/tests/**' + - '!src/pytest.ini' - 'infra/**/*.bicep' - 'infra/**/*.json' + - 'infra/scripts/**' - '*.yaml' - 'scripts/**' - '.github/workflows/deploy-*.yml' diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index b3c4d443e..28a310d90 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -10,8 +10,8 @@ on: - 'src/backend/**' - 'src/App/**' - 'src/App/server/**' - - '.github/workflows/docker-build.yml' - pull_request: + - 'src/App/WebApp.Dockerfile' + - 'src/App/.dockerignore' types: - opened - ready_for_review @@ -25,6 +25,8 @@ on: - 'src/backend/**' - 'src/App/**' - 'src/App/server/**' + - 'src/App/WebApp.Dockerfile' + - 'src/App/.dockerignore' - '.github/workflows/docker-build.yml' workflow_dispatch: @@ -32,6 +34,11 @@ permissions: contents: read actions: read id-token: write # Required for OIDC-based Azure authentication + +concurrency: + group: docker-build-${{ github.ref }} + cancel-in-progress: true + jobs: build-and-push: runs-on: ubuntu-latest diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 8e739ab4a..592930f82 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -2,6 +2,18 @@ name: PyLint on: push: + branches: + - main + - dev + paths: + - 'src/backend/**/*.py' + - 'src/backend/requirements*.txt' + - '.flake8' + - '.github/workflows/pylint.yml' + pull_request: + branches: + - main + - dev paths: - 'src/backend/**/*.py' - 'src/backend/requirements*.txt' @@ -12,6 +24,10 @@ permissions: contents: read actions: read +concurrency: + group: pylint-${{ github.ref }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest @@ -25,6 +41,8 @@ jobs: uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} + cache: 'pip' + cache-dependency-path: src/backend/requirements*.txt - name: Install dependencies run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 47b1faa1c..82573ca99 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,8 +6,9 @@ on: - main - dev paths: - - '**/*.py' + - 'src/**/*.py' - 'src/backend/requirements*.txt' + - 'src/pytest.ini' - '.github/workflows/test.yml' pull_request: types: @@ -19,14 +20,19 @@ on: - main - dev paths: - - '**/*.py' + - 'src/**/*.py' - 'src/backend/requirements*.txt' + - 'src/pytest.ini' - '.github/workflows/test.yml' permissions: contents: read actions: read +concurrency: + group: test-${{ github.ref }} + cancel-in-progress: true + jobs: backend_tests: runs-on: ubuntu-latest @@ -39,6 +45,8 @@ jobs: uses: actions/setup-python@v6 with: python-version: "3.11" + cache: 'pip' + cache-dependency-path: src/backend/requirements*.txt - name: Install Backend Dependencies run: |