CICD-059 · Require a current uv lock
Encyclopedia · Python CI and uv · All snippets
Previous · CICD-058 · Next · CICD-060
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites uv or Python dependencies pinned with fixture application and tests.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
uv lock --check3. How it works
uv lock --check reads the declared inputs and returns an error for drift. It suits CI that reviews lock updates separately.
4. Verify the result
Simulate a pyproject change and verify the check fails on stale lock state.
Validation syntax-validated (Bash parse). Status definitions.