Skip to content

ci: sync uv.lock on release-please PRs - #39

Merged
g4bri3lDev merged 2 commits into
mainfrom
ci/sync-uv-lock
Sep 27, 2026
Merged

g4bri3lDev merged 2 commits into
mainfrom
ci/sync-uv-lock

Conversation

@g4bri3lDev

Copy link
Copy Markdown
Member

Summary

release-please bumps the version in pyproject.toml but not in uv.lock, which records the project's own version. After every release the lock file is one version behind. Each later uv run, including the pre-commit hooks, then rewrites it, which dirties the tree and can block commits.

This adds the lock-file sync step from py-opendisplay's release workflow. When release-please opens or updates a release PR, CI checks out that PR's branch, runs uv lock, and pushes uv.lock if it changed. It is safe to run repeatedly.

One change from py-opendisplay: the branch name comes from release-please's pr output (fromJSON(steps.release.outputs.pr).headBranchName) instead of being hardcoded. This repo's release branch is release-please--branches--main--components--odl-renderer, so the hardcoded release-please--branches--main would miss it.

This PR also commits the stale lock file (0.5.11 → 0.5.12).

Test plan

  • Workflow YAML parses
  • Verify on the next release-please PR that a chore: sync uv.lock with release version commit is added

release-please bumps pyproject.toml but not uv.lock, leaving the lock
one version behind after every release. Regenerate it on the release PR
branch (ported from py-opendisplay). Also syncs the stale lock to 0.5.12.
@codecov

codecov Bot commented Sep 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Step env is resolved before the step if, so fromJSON(steps.release.outputs.pr)
failed on empty output whenever release-please had nothing to do. Read the
branch only in the checkout step and push to HEAD.
@g4bri3lDev
g4bri3lDev merged commit b1e2e11 into main Sep 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant