5yutan5/Setup Poetry environment
This action allows setup Python/Poetry, installing dependencies, and caching dependencies and Poetry installation all at once.
View on GitHubTrust Signals
- Scorecard Score
- Scorecard 2–4scored Jul 13, 2026
- Maintenance Recency
- Stalelast commit Mar 29, 2023
- License
- MIT
- Runtime
- Deprecated runtime
Pinned Snippet
uses: 5yutan5/setup-poetry-env@d6b649f0c6e21425e94146fd44b69332bf2eeb5b # v1.1.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| cache-dependencies | Whether to cache installed dependencies. | — | true |
| additional-dependency-cache-key | Additional dependency cache key. | — | — |
| poetry-version | The Poetry version to install. | — | 1.4.1 |
| poetry-install-dependencies | 'Whether Poetry should install dependencies after completing all setup.' | — | true |
| token | Wrapper around `token` input of actions/setup-python. | — | ${{ github.server_url == 'https://github.com' && github.token || '' }} |
| python-architecture | Wrapper around `architecture` input of actions/setup-python. | — | — |
| python-cache-dependency-path | 'Wrapper around `cache-dependency-path` input of actions/setup-python.' | — | — |
| python-check-latest | Wrapper around `check-latest` input of actions/setup-python. | — | false |
| python-update-environment | 'Wrapper around `update-environment` input of actions/setup-python.' | — | true |
| python-version | Wrapper around `version` input of actions/setup-python. | — | — |
| python-version-file | Wrapper around `version-file` input of actions/setup-python. | — | — |
| poetry-cache-dir | Wrapper around Poetry setting `cache-dir` | — | — |
| poetry-installer-max-workers | Wrapper around Poetry setting `installer.max-workers`. | — | — |
| poetry-installer-parallel | Wrapper around Poetry setting `installer.parallel`. | — | — |
| poetry-pypi-token | Wrapper around Poetry setting `pypi-token`. | — | — |
| poetry-virtualenvs-create | Wrapper around Poetry setting `virtualenvs.create`. | — | — |
| poetry-virtualenvs-in-project | Wrapper around Poetry setting `virtualenvs.in-project`. | — | — |
| poetry-virtualenvs-path | Wrapper around Poetry setting `virtualenvs-path`. | — | — |
| poetry-install-additional-args | Arguments passed directly to the `poetry install` command. | — | — |
| poetry-install--all-extras | Whether use `--all-extras` option to `poetry install`. | — | — |
| poetry-install--extras | Wrapper around argument of `poetry install --extras`. | — | — |
| poetry-install--no-root | Whether use `--no-root` option to `poetry install`. | — | — |
| poetry-install--only | Wrapper around argument of `poetry install --only`. | — | — |
| poetry-install--only-root | Whether use `--only-root` option to `poetry install`. | — | — |
| poetry-install--with | Wrapper around argument of `poetry install --with`. | — | — |
| poetry-install--without | Wrapper around argument of `poetry install --without`. | — | — |
Outputs
| name | description |
|---|---|
| poetry-cache-hit | 'A boolean value to indicate a cache entry of poetry installation was found' |
| cache-hit | Wrapper around `cache-hit` output of actions/setup-python. |
| python-path | Wrapper around `python-path` output of actions/setup-python. |
| python-version | 'Wrapper around `python-version` output of actions/setup-python.' |