add PR logic to merge-test (#256)

This commit is contained in:
Eduard van Valkenburg
2025-07-28 13:58:28 +02:00
committed by GitHub
Unverified
parent 376e8d7bfc
commit bf45d101a5
+5 -3
View File
@@ -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: