Sourced from actions/setup-python's releases.
v4.0.0
What's Changed
- Support for
python-version-file
input: #336Example of usage:
- uses: actions/setup-python@v4 with: python-version-file: '.python-version' # Read python version from a file - run: python my_script.py
There is no default python version for this
setup-python
major version, the action requires to specify eitherpython-version
input orpython-version-file
input. If thepython-version
input is not specified the action will try to read required version from file frompython-version-file
input.
- Use pypyX.Y for PyPy
python-version
input: #349Example of usage:
- uses: actions/setup-python@v4 with: python-version: 'pypy3.9' # pypy-X.Y kept for backward compatibility - run: python my_script.py
RUNNER_TOOL_CACHE
environment variable is equalAGENT_TOOLSDIRECTORY
: #338Bugfix: create missing
pypyX.Y
symlinks: #347
PKG_CONFIG_PATH
environment variable: #400Added
python-path
output: #405python-path
output contains Python executable path.Updated
zeit/ncc
tovercel/ncc
package: #393Bugfix: fixed output for prerelease version of poetry: #409
Made
pythonLocation
environment variable consistent for Python and PyPy: #418Bugfix for
3.x-dev
syntax: #417Update actions/cache version to 2.0.2
In scope of this release we updated
actions/cache
package as the new version contains fixes related to GHES 3.5 (actions/setup-python#382)Add "cache-hit" output and fix "python-version" output for PyPy
This release introduces new output cache-hit (actions/setup-python#373) and fix python-version output for PyPy (actions/setup-python#365)
The cache-hit output contains boolean value indicating that an exact match was found for the key. It shows that the action uses already existing cache or not. The output is available only if cache is enabled.
... (truncated)
13ae5bb
Merge pull request #517
from rentziass/rentziass/update-actions-core0c4d7b8
Update @actions/core
to 1.10.013a464f
Fix typo (#503)b4fe97e
upgrade @actions/cache
so it respects
SEGMENT_DOWNLOAD_TIMEOUT_MINS (#499)434aeab
Bump @actions/core
from 1.7.0 to 1.9.1 (#495)98c991d
Only use github.token on github.com (#443)397a35f
Merge pull request #492
from al-cheb/al-cheb/update-runner-link48a0f00
Update runner links978fd06
Merge pull request #491
from lkfortuna/patch-2050e616
Update README.md