chore(python): add Python GitHub workflows #146
Merged
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.
Description
This PR introduces minimal automation of Python's PRs and releases. The release action will be tested after merging and might need some tweaks afterward. In this PR, the Python package version is intentionally not bumped. It will be bumped when the full CI is tested and ready for prime time.
From our AI friend
This pull request introduces a new set of GitHub Actions workflows to automate Python package testing and release processes. The main changes are the addition of reusable workflows for running tests on multiple Python versions, checking for version bumps in
pyproject.tomlduring pull requests, and building and publishing the package to PyPI during releases.CI/CD Workflow Additions:
.github/workflows/python-test.ymlas a reusable workflow to run Python tests across multiple versions, with configurable inputs for package and test paths, and optional debug output.Pull Request Checks:
.github/workflows/python-pr.ymlto run tests via the reusable workflow and check if the package version inpython/pyproject.tomlwas bumped in pull requests, warning if not.Release Automation:
.github/workflows/python-release.ymlto run tests and, upon success, build and publish the Python package to PyPI using trusted publishing via GitHub Actions.