Python Build
Workflow: python-build.yml
Use this job to build a wheel and source distribution, verify metadata, and upload the same validated files as a downloadable GitHub Actions artifact.
Caller
Section titled “Caller”name: Package buildon: [pull_request]permissions: contents: readjobs: build: uses: RuchirChawdhry/ci-workflows/.github/workflows/python-build.yml@main with: source: '.' python-version: '3.14.7' cli-command: markboxInputs
Section titled “Inputs”| Input | Default | Description |
|---|---|---|
source |
. |
Directory containing pyproject.toml |
python-version |
3.14.7 |
Build and test interpreter |
runs-on |
ubuntu-slim |
Select a full runner for native builds |
cli-command |
empty | Optional isolated wheel-install smoke test |
artifact-name |
python-distributions |
Uploaded artifact name |
Results
Section titled “Results”The workflow checks that exactly one wheel and one .tar.gz source distribution were generated and runs twine check --strict. The validated distributions are uploaded with a seven-day retention period. The artifact-id job output identifies the uploaded artifact.
This does not publish to PyPI or GitHub Releases. Publishing should be a separate, explicitly authorized workflow.