mirror of
https://github.com/actions/setup-python.git
synced 2025-07-01 23:23:46 +00:00
Add support to .tool-version file format
Create a function to parse tool-version (asdf-vm) format, add the associated tests, and updated the documentation Ticket-ID: #571
This commit is contained in:
parent
bd6b4b6205
commit
892baae68b
4 changed files with 47 additions and 6 deletions
|
@ -239,9 +239,10 @@ jobs:
|
|||
|
||||
## Using the `python-version-file` input
|
||||
|
||||
`setup-python` action can read Python or PyPy version from a version file. `python-version-file` input is used for specifying the path to the version file. If the file that was supplied to `python-version-file` input doesn't exist, the action will fail with error.
|
||||
The python-version-file input accepts a path to a file containing the version of Python to be used by a project, for example .python-version, or .tool-versions.
|
||||
If both the python-version and the python-version-file inputs are provided then the python-version input is used.
|
||||
|
||||
>In case both `python-version` and `python-version-file` inputs are supplied, the `python-version-file` input will be ignored due to its lower priority.
|
||||
> The action will search for the python version file relative to the repository root.
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue