mirror of
https://github.com/actions/setup-python.git
synced 2025-06-27 21:23:48 +00:00
Fix documentation
Docs were updated to incorporate changes regarding tool cache folder on the self-hosted runner and changes in resolveVersionInput()
This commit is contained in:
parent
799afeb796
commit
5517d5f7b5
2 changed files with 4 additions and 27 deletions
|
@ -33,7 +33,7 @@ steps:
|
|||
python-version: 'pypy3.9'
|
||||
- run: python my_script.py
|
||||
```
|
||||
The `python-version` input is optional. If not supplied, the Python/PyPy version from the PATH will be used. The default version of Python/PyPy in PATH vary between runners and can be changed unexpectedly so we recommend always use `setup-python`.
|
||||
The `python-version` input is optional. If not supplied, the action will try to resolve version from the default `.python-version` file. If `.python-version` file doesn't exist Python/PyPy version from the PATH will be used. The default version of Python/PyPy in PATH vary between runners and can be changed unexpectedly so we recommend always use `setup-python`.
|
||||
|
||||
The action will first check the local [tool cache](docs/advanced-usage.md#hosted-tool-cache) for a [semver](https://github.com/npm/node-semver#versions) match. If unable to find a specific version in the tool cache, the action will attempt to download a version of Python from [GitHub Releases](https://github.com/actions/python-versions/releases) and for PyPy from the official [PyPy's dist](https://downloads.python.org/pypy/).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue