Skip to content

Commit 1b4b4ad

Browse files
committed
ci: enforce uv.lock consistency with --locked flag
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 893ed42 commit 1b4b4ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ runs:
4343
- name: Install Python dependencies
4444
if: inputs.skip-uv-sync != 'true'
4545
shell: bash
46-
run: uv sync --all-extras
46+
run: uv sync --all-extras --locked
4747

4848
- name: Install MCP mock server dependencies
4949
if: inputs.skip-uv-sync != 'true' && inputs.skip-mock-server != 'true'

flake.nix

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

0 commit comments

Comments
 (0)