Skip to content

Releases: ni/python-actions

ni/python-actions v0.2.0

04 Jun 22:15
2c946e7

Choose a tag to compare

What's Changed

  • Add the check-project-version action (#5)
    • The check-project-version action 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.
  • Add the update-project-version action (#5)
    • The update-project-version action uses 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-rule and use-dev-suffix to customize the versioning scheme.
      • version-rule specifies the rule for updating the version number. For example, major will update 1.0.0 -> 2.0.0, while patch will update 1.0.0 -> 1.0.1. See the docs for poetry version for the list of rules and their behavior.
      • use-dev-suffix specifies whether to use development versions like 1.0.0.dev0.

New Contributors

Full Changelog: v0.1.0...v0.2.0

ni/python-actions v0.1.0

12 May 18:56
e8f25e9

Choose a tag to compare

What's Changed

  • Add the setup-python action (#1)
    • The setup-python action 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.
  • Add the setup-poetry action (#1)
    • The setup-poetry action 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 call setup-python first.
    • The Poetry installation is isolated from any other software, such as pipx-installed apps.
    • By default, this action installs Poetry 1.8.2.

New Contributors

Full Changelog: https://github.com/ni/python-actions/commits/v0.1.0