Skip to content

Commit 865eede

Browse files
andre-salvaticlaude
andcommitted
ci: verify uv.lock is current before sync
Adds `uv lock --check` ahead of `make sync`. Now that uv.lock is tracked, a PR that edits pyproject.toml without re-locking would otherwise pass CI — `make sync` (uv sync, no --locked) silently re-resolves in the throwaway checkout, discarding the update and leaving the committed lock stale. The read-only check fails fast instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 6e3a4c0 commit 865eede

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/onpush.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ jobs:
4646
enable-cache: true
4747
cache-dependency-glob: "uv.lock"
4848

49+
# Fail if a PR edited pyproject.toml without re-running `uv lock`. `make sync`
50+
# would silently re-resolve and discard the update in CI's throwaway checkout,
51+
# leaving the committed uv.lock stale. This read-only check keeps them in sync.
52+
- name: Verify lockfile is current
53+
run: uv lock --check
54+
4955
- name: Install dependencies
5056
run: make sync
5157

0 commit comments

Comments
 (0)