Skip to content

Commit f159ea3

Browse files
authored
Recognize platform name in job names (#37)
1 parent 6d58154 commit f159ea3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

entrypoint.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,15 @@ def main() -> None: # noqa: C901,PLR0912
7070
if match:
7171
py_version = match.groups()[0]
7272
env_python = f"{py_version[0]}.{py_version[1:]}"
73+
platform_name = "linux" # implicit platform (os) to use
74+
for platform_name in PLATFORM_MAP:
75+
if platform_name in name:
76+
break
7377
data = {
7478
"name": name,
7579
"command": commands[0],
7680
"python_version": PYTHON_REDIRECTS.get(env_python, env_python),
77-
"os": PLATFORM_MAP["linux"],
81+
"os": PLATFORM_MAP[platform_name],
7882
}
7983
for index, command in enumerate(commands[1:]):
8084
data[f"command{index+2}"] = command
@@ -131,7 +135,7 @@ def main() -> None: # noqa: C901,PLR0912
131135
os.environ["INPUT_MAX_PYTHON"] = "3.13"
132136
os.environ["INPUT_MIN_PYTHON"] = "3.8"
133137
os.environ["INPUT_OTHER_NAMES"] = (
134-
"lint\npkg\npy313-devel\nall:tox -e unit;tox -e integration"
138+
"lint\npkg\npy313-devel\nall-macos:tox -e unit;tox -e integration"
135139
)
136140
os.environ["INPUT_PLATFORMS"] = "linux,macos" # macos and windows
137141
os.environ["INPUT_SKIP_EXPLODE"] = "0"

0 commit comments

Comments
 (0)