You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: add a shared workflow that builds and tests binary wheels - #130
Adds binary-wheels.yml, a reusable workflow that builds and tests the Python wheels of the repositories that repackage prebuilt binaries: ccache-wheel, llvm-cov-wheel and clangd-wheel. Their test.yml files are about 200 lines each and already differ in small ways; with this, each repository keeps only what is specific to it (package name, version file, platforms, extra test jobs) and calls:
What it does, unchanged from the current per-repo test.yml:
builds one wheel per platform from python hatch_build.py platforms (and per version, for repositories that can build older versions), runs twine check --strict, and checks that uv resolves a wheel for every target;
installs the wheel with pip and with uv on each runner and runs tests/smoke_test.py --version <wheel version>;
installs and tests it in containers (Alpine/musl, manylinux2014, QEMU architectures);
uploads wheels (and optional release-files) artifacts, which each repository's publish.yml then uploads.
The PyPI upload stays in each repository's own publish.yml: PyPI trusted publishing does not work from inside a reusable workflow, and the trusted publishers are bound to those file names.
The README's reusable workflow section describes it.
Related Issues
Pilot: cpp-linter/ccache-wheel (PR linked below once opened).
Added a reusable workflow to build and validate Python wheels across configured platforms, then test them with pip and uv.
Built wheels and optional release files are available as workflow artifacts, and the workflow reports the built versions.
Documentation
Added guidance for using the workflow across the documented repositories. PyPI publishing remains handled by each repository’s existing publishing workflow.
No actionable comments were generated in the recent review.
Walkthrough
The pull request adds a reusable workflow that builds and validates Python wheels, uploads wheel and optional release-file artifacts, and tests wheels with pip and uv on runners and in Linux containers. The README documents the workflow callers and publishing arrangement.
Changes
Binary Wheel Build and Test
Layer / File(s)
Summary
Workflow inputs and wheel build .github/workflows/binary-wheels.yml, README.md
The workflow defines its inputs and output, selects versions, builds and validates wheels, and uploads wheel and optional release-file artifacts. The README describes its callers and notes that PyPI uploads remain in each repository’s publish.yml.
This PR adds a shared workflow for building and testing binary wheels and documents it in the README. No concrete merge-blocking defect was established. Callers should check that platform selection does not depend on the version, and that first-version-only smoke testing matches their previous test.yml coverage.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title says the PR adds a shared workflow that builds and tests binary wheels. The raw summary and objectives confirm this is the main change: a new reusable workflow, binary-wheels.yml, that build…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check
Explanation
The title says the PR adds a shared workflow that builds and tests binary wheels. The raw summary and objectives confirm this is the main change: a new reusable workflow, binary-wheels.yml, that builds, checks, uploads, and tests Python wheels. The README update is a minor supporting change that the title does not mention, which is acceptable. The title follows the conventional commit style and is concise.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 71314460-1f58-42e2-a35d-8edd14bbc6e6
Commits
Reviewing files that changed from the base of the PR and between 18bed69 and 007a849.
Files selected for processing: 2
.github/workflows/binary-wheels.yml
README.md
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
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
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.
Summary
Adds
binary-wheels.yml, a reusable workflow that builds and tests the Python wheels of the repositories that repackage prebuilt binaries: ccache-wheel, llvm-cov-wheel and clangd-wheel. Theirtest.ymlfiles are about 200 lines each and already differ in small ways; with this, each repository keeps only what is specific to it (package name, version file, platforms, extra test jobs) and calls:What it does, unchanged from the current per-repo
test.yml:python hatch_build.py platforms(and per version, for repositories that can build older versions), runstwine check --strict, and checks that uv resolves a wheel for every target;tests/smoke_test.py --version <wheel version>;wheels(and optionalrelease-files) artifacts, which each repository'spublish.ymlthen uploads.The PyPI upload stays in each repository's own
publish.yml: PyPI trusted publishing does not work from inside a reusable workflow, and the trusted publishers are bound to those file names.The README's reusable workflow section describes it.
Related Issues
Pilot: cpp-linter/ccache-wheel (PR linked below once opened).
Generated by Claude Code
Summary by CodeRabbit