From bf45d101a5eee94d2eaedbf622d972624bd30020 Mon Sep 17 00:00:00 2001 From: Eduard van Valkenburg Date: Mon, 28 Jul 2025 13:58:28 +0200 Subject: [PATCH] add PR logic to merge-test (#256) --- .github/workflows/python-merge-tests.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-merge-tests.yml b/.github/workflows/python-merge-tests.yml index 6b47de4560..40dda628a1 100644 --- a/.github/workflows/python-merge-tests.yml +++ b/.github/workflows/python-merge-tests.yml @@ -2,6 +2,8 @@ name: Python - Merge - Tests on: workflow_dispatch: + pull_request: + branches: ["main"] merge_group: branches: ["main"] schedule: @@ -41,7 +43,7 @@ jobs: python-tests-main: name: Python Tests - Main needs: paths-filter - if: needs.paths-filter.outputs.pythonChanges == 'true' + if: github.event_name != 'pull_request' && needs.paths-filter.outputs.pythonChanges == 'true' runs-on: ${{ matrix.os }} environment: ${{ matrix.environment }} strategy: @@ -95,7 +97,7 @@ jobs: python-tests-azure: name: Python Tests - Azure needs: paths-filter - if: needs.paths-filter.outputs.pythonChanges == 'true' + if: github.event_name != 'pull_request' && needs.paths-filter.outputs.pythonChanges == 'true' runs-on: ${{ matrix.os }} environment: ${{ matrix.environment }} strategy: @@ -156,7 +158,7 @@ jobs: python-tests-foundry: name: Python Tests - Foundry needs: paths-filter - if: needs.paths-filter.outputs.pythonChanges == 'true' + if: github.event_name != 'pull_request' && needs.paths-filter.outputs.pythonChanges == 'true' runs-on: ${{ matrix.os }} environment: ${{ matrix.environment }} strategy: