Publish stable and nightly package channels - #9
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
Publish stable and nightly ClusterMAX packages from one trusted GitHub Actions workflow.
The current workflow can publish development builds only. A stable 0.2.1 package is required for default pip installation.
What changed
Effect
Technical terms
PyPI: The Python Package Index that hosts installable Python packages.pip: The Python package installer.--pre: A pip option that permits prerelease versions.development build: A prerelease package created from code before the stable 0.3.0 release.GitHub Actions: The GitHub automation service that builds and publishes the package.Validation
uv run --isolated --with pytest --with packaging python -m pytest -q tests/test_nightly_version.py: Pass. Six tests passed.uv run --isolated --with pytest --with pyyaml --with prompt-toolkit python -m pytest -q: Pass. 1,306 tests and 835 subtests passed.git diff --check: Pass.Merge plan
.github/workflows/python-nightly.ymlinSemiAnalysisAI/ClusterMAXwith thepypienvironment. This dependency is complete.Design decisions for approval
Risk and recovery
Excluded work
Note
Medium Risk
Wrong channel or version logic can publish an unintended immutable PyPI release; safeguards are channel-specific versioning and the protected
pypienvironment.Overview
Renames the GitHub Actions workflow to
python-publishand adds aworkflow_dispatchchannel (stableornightly, default nightly). Scheduled runs still publish nightlies; operators can manually publish stable frommaster.Version selection no longer hardcodes
0.2.1for every build. Stable usescmax.__version__from the repo (still0.2.1in this PR). Nightly builds use0.3.0.devYYYYMMDDNNviaNIGHTLY_VERSION: 0.3.0and the existing nightly script. Concurrency groups are per channel; build checks assert the source tree version while the wheel/CLI report the publication version.README documents the new nightly prefix and that
--prepicks a prerelease newer than stable0.2.1. Tests fix the script path, expect0.3.0in nightly fixtures, and add a check that the nightly string sorts above0.2.1.Reviewed by Cursor Bugbot for commit fd345d3. Bugbot is set up for automated code reviews on this repo. Configure here.