itsdrike/Setup poetry and python
Setup python, install poetry, install dependencies, cache.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| python-version | The version of python to use (passed into `actions/setup-python` action). | yes | — |
| poetry-version | Poetry version to use (passed to the official poetry install script). Leave blank for latest. | yes | "" |
| install-args | A string placed after the `poetry install` command, which can contain extra options. | yes | "" |
| working-dir | The directory to run the `poetry` commands in. By default, this will just be the root directory of the project. | yes | . |
| cache-poetry-install | Enable caching for poetry tool itself (not related to caching of the project's poetry dependencies). | yes | true |
| cache-poetry-environment | Enable caching for poetry environments (venvs that contain the project's poetry dependencies). | yes | true |
| poetry-home | Directory to install the poetry tool into. (passed into the official poetry installer as `POETRY_HOME` env variable). | yes | ~/.local/share/pypoetry |
Outputs
| name | description |
|---|---|
| poetry-version | The version of poetry installed |
| poetry-venv-path | Path to the virtual environment created by poetry for the project. |
| python-version | The python version used (forwarded from `actions/setup-python` action). |
| python-path | Path to the python interpreter (forwarded from `actions/setup-python` action). |
| cache-hit-poetry-install | The was a cache hit for the poetry tool (installation) cache. |
| cache-hit-poetry-environment | There was a cache hit for the poetry environment (dependencies) cache. |