Skip to content

Setup

poetry | setup

- uses: jambazid/gha-actions/python/poetry/setup@unknown
  with:
    working-directory: (1)
    python-version: (2)
  1. Python project location (path to the pyproject.toml folder).

  2. Required Python version.

Installs a Python project via the poetry build system and the associated pyproject.toml file.

Caching is performed against the poetry.lock file and source code.

Important

Assumes the following Project folder structure:

${working-directory}
├── pyproject.toml
├── ...
|
├── /src
|   └── /${namespace}
|       └── /${component}
|           └── ...
|
└── /tests
    └── ...

Inputs: ¤

Name Description
working-directory ¤

Python project location (path to the pyproject.toml folder).

python-version ¤

Required Python version.

ssh-known-hosts ¤

Hosts to be added to the ~/.ssh/known_hosts file.

ssh-private-keys ¤

SSH private keys.

init-script ¤

Path to a preambulatory script for initialising any special dependencies.