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.
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 -vsteps:
- uses: ni/python-actions/setup-python@v0
- uses: ni/python-actions/setup-poetry@v0
with:
poetry-version: 2.1.4
- run: poetry install -vIf you run into caching problems, you can disable caching by specifying use-cache: false.
You can use cache-hit to check whether Poetry was loaded from cache. This is mainly intended for
testing the action.