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
Copy file name to clipboardExpand all lines: README.md
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,17 @@ steps:
34
34
python-version: 'pypy3.9'
35
35
- run: python my_script.py
36
36
```
37
+
38
+
**GraalPy**
39
+
```yaml
40
+
steps:
41
+
- uses: actions/checkout@v4
42
+
- uses: actions/setup-python@v4
43
+
with:
44
+
python-version: 'graalpy-22.3'
45
+
- run: python my_script.py
46
+
```
47
+
37
48
The `python-version` input is optional. If not supplied, the action will try to resolve the version from the default `.python-version` file. If the `.python-version` file doesn't exist Python or PyPy version from the PATH will be used. The default version of Python or PyPy in PATH varies between runners and can be changed unexpectedly so we recommend always setting Python version explicitly using the `python-version` or `python-version-file` inputs.
38
49
39
50
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/).
@@ -82,7 +93,7 @@ See examples of using `cache` and `cache-dependency-path` for `pipenv` and `poet
`setup-python` is able to configure **Python** from two sources:
@@ -490,6 +491,11 @@ Such a requirement on side-effect could be because you don't want your composite
490
491
- PyPy < 7.3.3 are not available to install on-flight.
491
492
- If some versions are not available, you can open an issue in https://foss.heptapod.net/pypy/pypy/
492
493
494
+
### GraalPy
495
+
496
+
`setup-python`is able to download GraalPy versions from the [official GraalPy repository](https://github.com/oracle/graalpython).
497
+
- All available versions that we can download are listed in [releases](https://github.com/oracle/graalpython/releases).
498
+
493
499
## Hosted tool cache
494
500
495
501
GitHub hosted runners have a tool cache that comes with a few versions of Python + PyPy already installed. This tool cache helps speed up runs and tool setup by not requiring any new downloads. There is an environment variable called `RUNNER_TOOL_CACHE` on each runner that describes the location of the tool cache with Python and PyPy installed. `setup-python` works by taking a specific version of Python or PyPy from this tool cache and adding it to PATH.
0 commit comments