Skip to content

Commit

Permalink
Allow use of py313 in other_names (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Aug 6, 2024
1 parent de2f3f5 commit ab6c888
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
from actions_toolkit import core

KNOWN_PYTHONS = ("3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13-dev")
PYTHON_REDIRECTS = {
"3.13": "3.13-dev" # Remove once GHA allows 3.13 as a valid version
}
PLATFORM_MAP = {
"linux": "ubuntu-22.04",
"macos": "macos-13",
Expand Down Expand Up @@ -56,7 +59,7 @@ def main() -> None:
{
"name": env,
"passed_name": env,
"python_version": env_python,
"python_version": PYTHON_REDIRECTS.get(env_python, env_python),
"os": PLATFORM_MAP["linux"],
}
)
Expand Down Expand Up @@ -97,9 +100,9 @@ def main() -> None:
if __name__ == "__main__":
# only used for local testing, emulating use from github actions
if os.getenv("GITHUB_ACTIONS") is None:
os.environ["INPUT_OTHER_NAMES"] = "lint\npkg"
os.environ["INPUT_OTHER_NAMES"] = "lint\npkg\npy313-devel"
os.environ["INPUT_MIN_PYTHON"] = "3.8"
os.environ["INPUT_MAX_PYTHON"] = "3.12"
os.environ["INPUT_MAX_PYTHON"] = "3.13"
os.environ["INPUT_DEFAULT_PYTHON"] = "3.10"
os.environ["INPUT_PLATFORMS"] = "linux,macos" # macos and windows
os.environ["INPUT_LINUX"] = "full"
Expand Down

0 comments on commit ab6c888

Please sign in to comment.