fix(ci): run semantic-release as CLI instead of Docker action#203
fix(ci): run semantic-release as CLI instead of Docker action#203Abdelsalam-Abbas merged 2 commits intomainfrom
Conversation
The Docker-based action runs build_command inside its container where pixi is not available. Switch to running semantic-release via uvx on the runner where setup-pixi installs pixi. Add assets config so pixi.lock is included in the version commit.
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe PR refactors the release workflow from GitHub action-based semantic-release invocations to inline shell commands via Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
python-semantic-releaseaction with direct CLI invocation viauvxbuild_command = "pixi lock"failed withcommand not foundbuild_commandcan use pixi (installed bysetup-pixi)assets = ["pixi.lock"]so the regenerated lockfile is staged in the version commitHow it works
The semantic-release lifecycle: stamp version in pyproject.toml -> run
build_command(pixi lock) -> stage version files +assets(pixi.lock) -> commit -> tag -> push. This means the lockfile update is part of the same commit and tag as the version bump.Test plan
semantic-release publishcreates the GitHub Release correctly withGH_TOKENSummary by CodeRabbit