Skip to content

Commit 3c22e69

Browse files
committed
ci: enforce a frozen uv install and keep uv.lock in sync
Add --locked to the CI sync so the committed uv.lock is the single source of truth and any drift fails the build, matching the frozen installs the other SDK repos already use. The release workflow now relocks and commits uv.lock after the version bump, which is what left the lock stale (it had tracked the package version, not the dependencies). uv has no rolling release-age cooldown, so a verified lockfile plus a frozen install is the supply-chain control for this repo.
1 parent 8bf62c0 commit 3c22e69

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
python-version: ${{ matrix.python }}
2424
enable-cache: true
2525

26-
- run: uv sync --all-extras --dev
26+
- run: uv sync --locked --all-extras --dev
2727

2828
- name: Codegen drift check
2929
if: matrix.python == '3.12'

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ jobs:
9393
git config user.name "github-actions[bot]"
9494
git config user.email "github-actions[bot]@users.noreply.github.com"
9595
VERSION=$(cat /tmp/new_version.txt)
96-
git add pyproject.toml src/roxy_sdk/version.py specs/openapi.json src/roxy_sdk/factory.py
96+
uv lock
97+
git add pyproject.toml uv.lock src/roxy_sdk/version.py specs/openapi.json src/roxy_sdk/factory.py
9798
git commit -m "release: v$VERSION"
9899
git tag "v$VERSION"
99100
git push --follow-tags

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)