You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Set up a specific version of Python and add the command-line tools to the PATH."
4
+
author: "GitHub"
5
+
inputs:
6
+
python-version:
7
+
description: "Version range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset."
8
+
python-version-file:
9
+
description: "File containing the Python version to use. Example: .python-version"
10
+
cache:
11
+
description: "Used to specify a package manager for caching in the default directory. Supported values: pip, pipenv, poetry."
12
+
required: false
13
+
architecture:
14
+
description: "The target architecture (x86, x64, arm64) of the Python or PyPy interpreter."
15
+
check-latest:
16
+
description: "Set this option if you want the action to check for the latest available version that satisfies the version spec."
17
+
default: false
18
+
token:
19
+
description: "The token used to authenticate when fetching Python distributions from https://github.com/actions/python-versions. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting."
description: "Used to specify the path to dependency files. Supports wildcards or a list of file names for caching multiple dependencies."
23
+
update-environment:
24
+
description: "Set this option if you want the action to update environment variables."
25
+
default: true
26
+
allow-prereleases:
27
+
description: "When 'true', a version range passed to 'python-version' input will match prerelease versions if no GA versions are found. Only 'x.y' version range is supported for CPython."
28
+
default: false
29
+
freethreaded:
30
+
description: "When 'true', use the freethreaded version of Python."
31
+
default: false
32
+
pip-version:
33
+
description: "Used to specify the version of pip to install with the Python. Supported format: major[.minor][.patch]."
34
+
pip-install:
35
+
description: "Used to specify the packages to install with pip after setting up Python. Can be a requirements file or package names."
36
+
outputs:
37
+
python-version:
38
+
description: "The installed Python or PyPy version. Useful when given a version range as input."
39
+
cache-hit:
40
+
description: "A boolean value to indicate a cache entry was found"
41
+
python-path:
42
+
description: "The absolute path to the Python or PyPy executable."
0 commit comments