From 16285865539ceb71b1b0dfbe6351403f9eafcfac Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 28 Oct 2025 22:35:09 +0100 Subject: [PATCH] Optimisations to GitHub test flow --- .github/workflows/test-only.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test-only.yml b/.github/workflows/test-only.yml index 0477f481..d3e8c827 100644 --- a/.github/workflows/test-only.yml +++ b/.github/workflows/test-only.yml @@ -21,6 +21,8 @@ jobs: python3 -c "from openapi_spec_validator import validate_spec; import yaml; validate_spec(yaml.safe_load(open('docs/api-spec.yaml')))" test-application-3-10: + # Only run on push to master (including PR merges) + if: github.event_name == 'push' && github.ref == 'refs/heads/master' needs: lint-code uses: ./.github/workflows/test-stack-reusable-workflow.yml with: @@ -28,12 +30,15 @@ jobs: test-application-3-11: + # Always run needs: lint-code uses: ./.github/workflows/test-stack-reusable-workflow.yml with: python-version: '3.11' test-application-3-12: + # Only run on push to master (including PR merges) + if: github.event_name == 'push' && github.ref == 'refs/heads/master' needs: lint-code uses: ./.github/workflows/test-stack-reusable-workflow.yml with: @@ -41,6 +46,8 @@ jobs: skip-pypuppeteer: true test-application-3-13: + # Only run on push to master (including PR merges) + if: github.event_name == 'push' && github.ref == 'refs/heads/master' needs: lint-code uses: ./.github/workflows/test-stack-reusable-workflow.yml with: