diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ea2a4d5dfe..bb5c534a66 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,14 @@ jobs: test: runs-on: scilus-runners steps: - - name: Checkout repository + - name: Checkout repository for PR + if: github.event.pull_request.number + uses: actions/checkout@v4.1.1 + with: + ref: refs/pull/${{ github.event.pull_request.number }}/merge + + - name: Checkout repository for merge + if: ! github.event.pull_request.number uses: actions/checkout@v4.1.1 - name: Fetch python version from repository