Skip to content

Commit e14f882

Browse files
committed
possible fix for the python issue
1 parent a4816d2 commit e14f882

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
name: "Setup Python"
3+
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."
20+
default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
21+
cache-dependency-path:
22+
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."
43+
runs:
44+
using: 'node24'
45+
main: 'dist/setup/index.js'
46+
post: 'dist/cache-save/index.js'
47+
post-if: success()
48+
branding:
49+
icon: 'code'
50+
color: 'yellow'

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
uses: ./.github/actions/cache_cc65
2121
- name: Cache llvm-mos-sdk
2222
uses: ./.github/actions/cache_llvm-mos-sdk
23+
- name: Setup Python
24+
uses: actions/setup-python@v6
25+
with:
26+
python-version: '3.12.3'
2327
- name: Set path
2428
run: |
2529
echo "${{ github.workspace }}/opt/cc65/bin:${{ github.workspace }}/opt/llvm-mos-sdk/bin" >> $GITHUB_PATH

0 commit comments

Comments
 (0)