Package Validation
Validate PyPI package build on PRs
Builds the wheel, runs safety checks, and tests installation across Python versions. Optionally publishes to TestPyPI for validation.
Production PyPI publishing happens in release.yml (protected environment).
uses: huntridge-labs/argus/.github/workflows/publish-pypi.yml@1.15.2-rc.0
Pipeline
3 jobs (1 matrix) ยท scroll to zoom ยท drag to pan
Triggers
- Pull request
Permissions
| Scope | Access |
|---|---|
contents |
read |
id-token |
write |
Jobs
build โ Build Package
Runs on: ubuntu-latest
Steps:
- Install build tools
- Set dev version for TestPyPI
- Build wheel and sdist
- Inspect package contents
- Safety check
- Upload build artifacts โ
actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
test-install โ Test Install (Python ${{ matrix.python-version }})
Runs on: ubuntu-latest ยท Depends on: build
Steps:
- Download built package โ
actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 - Install from wheel
- Smoke test
publish-testpypi โ Publish to TestPyPI
Runs on: ubuntu-latest ยท Depends on: build, test-install ยท Condition: github.event.pull_request.head.repo.full_name == github.repository
Steps:
- Download built package โ
actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 - Publish to TestPyPI โ
pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086