Skip to content

Commit cabc0df

Browse files
committed
CI: checkout repo before dependency cache step
actions/cache's hashFiles('pyproject.toml') was returning empty because pyproject.toml was not present in the workspace. Add actions/checkout before the cache steps in build_wheels and build_wheels_emulated_linux so the cache key includes the dependency version hash. Assisted-by: Kimi Code
1 parent 89c4fa0 commit cabc0df

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ jobs:
8080
with:
8181
python-version: '3.13'
8282

83+
- uses: actions/checkout@v7
84+
with:
85+
persist-credentials: false
86+
8387
- name: Cache compiled dependencies
8488
if: ${{ !startsWith(matrix.name, 'windows-') }}
8589
uses: actions/cache@v4
@@ -138,6 +142,10 @@ jobs:
138142
with:
139143
python-version: '3.13'
140144

145+
- uses: actions/checkout@v7
146+
with:
147+
persist-credentials: false
148+
141149
- uses: docker/setup-qemu-action@v4
142150
with:
143151
platforms: ${{ matrix.qemu_platform }}

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ and skips `*musllinux_ppc64le` plus testing on `*-*linux_ppc64le`,
273273

274274
## Git Commits
275275

276+
- Do not run `git commit` or create commits unless the user explicitly asks for it.
276277
- Commits created by an AI agent must end with the `Assisted-by:` trailer.
277278
Human-authored commits do not need it.
278279

0 commit comments

Comments
 (0)