Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.09 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.09 KB

ni/python-actions/setup-poetry

The ni/python-actions/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 ni/python-actions/setup-python action, so you must call ni/python-actions/setup-python first.

By default, this action installs Poetry 2.4.1.

Usage

Note

These examples use @v0, but pinning to a commit hash or full release tag is recommended for build reproducibility and security.

steps:
- uses: ni/python-actions/setup-python@v0
- uses: ni/python-actions/setup-poetry@v0
- run: poetry install -v

Inputs

poetry-version

steps:
- uses: ni/python-actions/setup-python@v0
- uses: ni/python-actions/setup-poetry@v0
  with:
    poetry-version: 2.4.1
- run: poetry install -v

use-cache

If you run into caching problems, you can disable caching by specifying use-cache: false.

Outputs

cache-hit

You can use cache-hit to check whether Poetry was loaded from cache. This is mainly intended for testing the action.