mirror of
https://github.com/pyTooling/Actions.git
synced 2026-02-12 02:56:56 +08:00
Also handle pypy versions.
This commit is contained in:
14
.github/workflows/Parameters.yml
vendored
14
.github/workflows/Parameters.yml
vendored
@@ -158,9 +158,9 @@ jobs:
|
||||
},
|
||||
# Runner systems (runner images) supported by GitHub Actions
|
||||
"sys": {
|
||||
"ubuntu": { "icon": "🐧", "runs-on": "ubuntu-latest", "shell": "bash", "name": "Linux (x86-64)", "minPy": [3, 7]},
|
||||
"windows": { "icon": "🪟", "runs-on": "windows-latest", "shell": "pwsh", "name": "Windows (x86-64)", "minPy": [3, 7]},
|
||||
"macos": { "icon": "🍎", "runs-on": "macos-latest", "shell": "bash", "name": "MacOS (x86-64)", "minPy": [3, 10]},
|
||||
"ubuntu": { "icon": "🐧", "runs-on": "ubuntu-latest", "shell": "bash", "name": "Linux (x86-64)", "minPy": (3, 7)},
|
||||
"windows": { "icon": "🪟", "runs-on": "windows-latest", "shell": "pwsh", "name": "Windows (x86-64)", "minPy": (3, 7)},
|
||||
"macos": { "icon": "🍎", "runs-on": "macos-latest", "shell": "bash", "name": "MacOS (x86-64)", "minPy": (3, 10)},
|
||||
},
|
||||
# Runtimes provided by MSYS2
|
||||
"runtime": {
|
||||
@@ -183,13 +183,17 @@ jobs:
|
||||
for disable in disabled:
|
||||
print(f"- {disable}")
|
||||
|
||||
def toVersion(value):
|
||||
major, minor = value.split(".")
|
||||
return tuple(int(major[-1]), int(minor))
|
||||
|
||||
combinations = [
|
||||
(system, version)
|
||||
for system in systems
|
||||
if system in data["sys"]
|
||||
for version in versions
|
||||
if version in data["python"]
|
||||
and [int(i) for i in version.split(".")] >= data["sys"][system]["minPy"]
|
||||
and toVersion(version) >= data["sys"][system]["minPy"]
|
||||
and f"{system}:{version}" not in excludes
|
||||
and f"{system}:{version}" not in disabled
|
||||
] + [
|
||||
@@ -203,7 +207,7 @@ jobs:
|
||||
for system, version in includes
|
||||
if system in data["sys"]
|
||||
and version in data["python"]
|
||||
and [int(i) for i in version.split(".")] >= data["sys"][system]["minPy"]
|
||||
and toVersion(version) >= data["sys"][system]["minPy"]
|
||||
and f"{system}:{version}" not in disabled
|
||||
]
|
||||
print(f"Combinations ({len(combinations)}):")
|
||||
|
||||
Reference in New Issue
Block a user