Skip to content

Commit 8d18182

Browse files
ci: checkout head sha for coverage mapping
1 parent 6054797 commit 8d18182

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/python_pytest.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
# Common steps:
3737
- name: Checkout code
3838
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
39+
with:
40+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
3941
- name: Install uv
4042
uses: astral-sh/setup-uv@f06b870e0a91d23284a3013acc55e6f88ab4b904 # v7
4143
with:
@@ -108,6 +110,8 @@ jobs:
108110
# Common steps:
109111
- name: Checkout code
110112
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
113+
with:
114+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
111115
- name: Install uv
112116
uses: astral-sh/setup-uv@f06b870e0a91d23284a3013acc55e6f88ab4b904 # v7
113117
with:
@@ -194,6 +198,8 @@ jobs:
194198
# Common steps:
195199
- name: Checkout code
196200
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
201+
with:
202+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
197203
- name: Install uv
198204
uses: astral-sh/setup-uv@f06b870e0a91d23284a3013acc55e6f88ab4b904 # v7
199205
with:

0 commit comments

Comments
 (0)