diff --git a/.github/workflows/ci-test-tlm.yml b/.github/workflows/ci-test-tlm.yml index babd5554..b626fa67 100644 --- a/.github/workflows/ci-test-tlm.yml +++ b/.github/workflows/ci-test-tlm.yml @@ -22,7 +22,11 @@ jobs: - "3.11" - "3.12" steps: - - uses: actions/checkout@v2 + - name: Check out latest commit + if: ${{ github.event.issue.pull_request }} + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} - name: Set up Python ${{ matrix.python }} uses: actions/setup-python@v2 with: @@ -54,7 +58,11 @@ jobs: python: - "3.11" steps: - - uses: actions/checkout@v2 + - name: Check out latest commit + if: ${{ github.event.issue.pull_request }} + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} - name: Set up Python ${{ matrix.python }} uses: actions/setup-python@v2 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 003c7314..01002e30 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,11 @@ jobs: name: Type check runs-on: ubuntu-latest steps: + - name: Check out latest commit + if: ${{ github.event.issue.pull_request }} + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.ref }} - uses: actions/checkout@v2 - uses: actions/setup-python@v2 with: