Skip to content

Commit 55db668

Browse files
Merge pull request #172 from Quantum-Software-Development/FabianaCampanari-patch-1
Create setup-python.yml
2 parents 92d4f06 + f972ddd commit 55db668

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

setup-python.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
---
3+
name: "Setup Python"
4+
description: "Set up a specific version of Python and add the command-line tools to the PATH."
5+
author: "GitHub"
6+
inputs:
7+
python-version:
8+
description: "Version range or exact version of Python or PyPy to use, using SemVer's version range syntax. Reads from .python-version if unset."
9+
python-version-file:
10+
description: "File containing the Python version to use. Example: .python-version"
11+
cache:
12+
description: "Used to specify a package manager for caching in the default directory. Supported values: pip, pipenv, poetry."
13+
required: false
14+
architecture:
15+
description: "The target architecture (x86, x64) of the Python or PyPy interpreter."
16+
check-latest:
17+
description: "Set this option if you want the action to check for the latest available version that satisfies the version spec."
18+
default: false
19+
token:
20+
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."
21+
default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
22+
cache-dependency-path:
23+
description: "Used to specify the path to dependency files. Supports wildcards or a list of file names for caching multiple dependencies."
24+
update-environment:
25+
description: "Set this option if you want the action to update environment variables."
26+
default: true
27+
allow-prereleases:
28+
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."
29+
default: false
30+
outputs:
31+
python-version:
32+
description: "The installed Python or PyPy version. Useful when given a version range as input."
33+
cache-hit:
34+
description: "A boolean value to indicate a cache entry was found"
35+
python-path:
36+
description: "The absolute path to the Python or PyPy executable."
37+
runs:
38+
using: 'node20'
39+
main: 'dist/setup/index.js'
40+
post: 'dist/cache-save/index.js'
41+
post-if: success()
42+
branding:
43+
icon: 'code'
44+
color: 'yellow'

0 commit comments

Comments
 (0)