Releases: ni/python-actions
Releases · ni/python-actions
ni/python-actions v0.2.0
What's Changed
- Add the
check-project-versionaction (#5)- The
check-project-versionaction uses Poetry to get the version of a Python project and checks that it matches an expected version. - You can use this action in your project's publish workflow to verify that the project version matches the GitHub release tag.
- By default, this action checks against
github.ref_name, which is the GitHub release tag for GitHub release events.
- The
- Add the
update-project-versionaction (#5)- The
update-project-version actionuses Poetry to update the version of a Python project and creates a pull request to modify its pyproject.toml file. - You can use this action in your project's publish workflow to update the version number for the next release or pre-release.
- You can specify
version-ruleanduse-dev-suffixto customize the versioning scheme.version-rulespecifies the rule for updating the version number. For example,majorwill update 1.0.0 -> 2.0.0, whilepatchwill update 1.0.0 -> 1.0.1. See the docs for poetry version for the list of rules and their behavior.use-dev-suffixspecifies whether to use development versions like 1.0.0.dev0.
- The
New Contributors
Full Changelog: v0.1.0...v0.2.0
ni/python-actions v0.1.0
What's Changed
- Add the
setup-pythonaction (#1)- The
setup-pythonaction installs Python and adds it to the PATH. - It is a thin wrapper for https://github.com/actions/setup-python which is intended to
single-source the default Python version for multiple NI Python projects. - By default, this action installs Python 3.11.9.
- The
- Add the
setup-poetryaction (#1)- The
setup-poetryaction installs Poetry, adds it to the PATH, and caches it to speed up
workflows. - This action installs Poetry using the Python version that was selected by the
setup-python
action, so you must callsetup-pythonfirst. - The Poetry installation is isolated from any other software, such as pipx-installed apps.
- By default, this action installs Poetry 1.8.2.
- The
New Contributors
Full Changelog: https://github.com/ni/python-actions/commits/v0.1.0