Skip to content

Commit 05a94b3

Browse files
authored
ci: enforce uv.lock consistency with --locked flag (#119)
Add --locked flag to uv sync commands to fail if uv.lock is out of sync with pyproject.toml. This ensures lockfile consistency across CI and local development. - Add --locked to setup-nix action - Add --locked to flake.nix shellHook
1 parent 2e29f9e commit 05a94b3

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/actions/setup-nix/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ runs:
3939
- name: Install Python dependencies
4040
if: inputs.skip-uv-sync != 'true'
4141
shell: bash
42-
run: uv sync --all-extras
42+
run: uv sync --all-extras --locked
4343

4444
- name: Install MCP mock server dependencies
4545
if: inputs.skip-uv-sync != 'true'

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
# Install Python dependencies only if .venv is missing or uv.lock is newer
117117
if [ ! -d .venv ] || [ uv.lock -nt .venv ]; then
118118
echo "📦 Installing Python dependencies..."
119-
uv sync --all-extras
119+
uv sync --all-extras --locked
120120
fi
121121
122122
# Install git hooks

0 commit comments

Comments
 (0)