Add CI workflows for testing, linting and publishing to PyPI by tag #63
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.
Change Summary
What is this?
This pull request introduces a new GitHub Actions workflow for publishing the Python package to PyPI when a new release tag is pushed. This new workflow aims to streamline the release process and ensure that the package is built and published correctly.
Changes
Added Features:
.github/workflows/release.yml
:release.yml
workflow is triggered when a new Git tag starting withv
is pushed to the repository.tests
: Runs the test suite (excluding OpenAI tests) and reports the test coverage.build-n-publish
: Builds the Python package and publishes it to PyPI using thepypa/gh-action-pypi-publish
action.attestations
option is enabled for the PyPI publish step to ensure build provenance.tests
andbuild-n-publish
.tests
job runs the test suite and reports the coverage.build-n-publish
job builds the package and publishes it to PyPI..github/workflows/test-and-lint.yml
:test-and-lint.yml
workflow is triggered on both push and pull request events to themaster
branch.quality
job that tests the codebase against multiple Python versions (3.8, 3.9, 3.10, 3.11, 3.12).PR Checklist