finleyfamily/Setup Python and Poetry
Setup a specific version of Python & Poetry with virtual environment caching.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| architecture | The target architecture (x86, x64) of the Python interpreter. | — | — |
| poetry-check | Whether validate the content of the `pyproject.toml` file and its consistency with the `poetry.lock` file. | no | false |
| poetry-check-cmd | The poetry command to run when checking the lock file (e.g. `check`). This command was changed in poetry 1.6 (default used by this action). To support older versions of poetry, provide a value for this input. | no | check --ansi |
| poetry-install | Whether to run `poetry install`. | no | true |
| poetry-install-args | Additional args to pass to `poetry install`. | no | --ansi -v --sync |
| poetry-install-cmd | Command for installing poetry project. Can be used to provide a custom install command. The value of `poetry-install-args` is appended after this. | no | poetry install |
| poetry-plugins | A whitespace seperated list of poetry plugins to be installed (e.g. `plugin0 plugin1`). Note that [poetry-plugin-export](https://github.com/python-poetry/poetry-plugin-export) is installed by default and can be left out of this list. | no | — |
| poetry-preview | Allow install of prerelease versions of Poetry. | no | false |
| poetry-version | Poetry version to use. If version is not provided then latest stable version will be used. Should be provided as a version specifier that can be passed to [pipx](https://github.com/pypa/pipx) or `latest`. | no | latest |
| python-version | Version range or exact version of a Python version to use, using semver version range syntax. Reads from pyproject.toml if unset. | no | ${{ null }} |
| python-version-file | File containing the Python version to use. | no | pyproject.toml |
| token | Used to pull python distributions from actions/python-versions. Since there's a default, this is typically not supplied by the user. | — | ${{ github.token }} |
Outputs
| name | description |
|---|---|
| cache-hit | Whether there was a cache hit for the Python virtual environment. |
| python-path | The absolute path to the Python or PyPy executable. |
| python-version | The installed Python version. Useful when given a version range as input. |