Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

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.1.4.

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.1.4
- 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.