Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 1.36 KB

File metadata and controls

21 lines (18 loc) · 1.36 KB

ni/python-actions

ni/python-actions is a Git repository containing reusable GitHub Actions for NI Python projects.

Actions

  • ni/python-actions/setup-python: installs Python and adds it to the PATH, single-sourcing the default Python version for multiple NI Python projects.
  • ni/python-actions/setup-poetry: installs Poetry, adds it to the PATH, and caches it to speed up workflows.
  • ni/python-actions/analyze-project: analyzes the code quality of a Python project using various linters and type checkers.
  • ni/python-actions/check-project-version: uses Poetry to get the version of a Python project and checks that it matches an expected version. Publish workflows can use this to verify that the release tag matches the version number in pyproject.toml.
  • ni/python-actions/check-project-links: scans project pyproject.toml files for URLs, writes the discovered links to a temporary file, and validates each URL in Docker while failing only on 4xx responses.
  • ni/python-actions/update-project-version: uses Poetry to update the version of a Python project and creates a pull request to modify its pyproject.toml file. Publish workflows can use this to update the version in pyproject.toml for the next build.