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: