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
expectedJobs = [f"{system}:{python}" for system in expectedSystems for python in expectedPythons if f"{system}:{python}" not in excludedJobs] + includeJobs
expectedJobs = sorted([f"{system}:{python}" for system in expectedSystems for python in expectedPythons if f"{system}:{python}" not in excludedJobs] + includeJobs)
57
+
58
+
errors = 0
59
59
if actualPythonVersion != expectedPythonVersion:
60
60
print(f"'python_version' does not match: '{actualPythonVersion}' != '{expectedPythonVersion}'.")
61
61
errors += 1
62
62
63
63
if len(actualPythonJobs) != len(expectedJobs):
64
-
print(f"Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
64
+
print(f"❌ Number of 'python_jobs' does not match: {len(actualPythonJobs)} != {len(expectedJobs)}.")
65
65
print("Actual jobs:")
66
66
for job in actualPythonJobs:
67
67
if job['system'] == "msys2":
@@ -74,9 +74,19 @@ runs:
74
74
print(f" {job}")
75
75
errors += 1
76
76
else:
77
-
print("❌ Checking job matrix is not implemented")
77
+
print("✅ Number of 'python_jobs' as expected.")
78
+
print("Checking job combinations ...")
78
79
79
-
if errors == 0:
80
-
print(f"All checks PASSED.")
80
+
actualJobs = sorted([f"{job['system'] if job['system'] != 'msys2' else job['runtime'].lower()}:{job['python']}" for job in actualPythonJobs])
81
+
for actual, expected in zip(actualJobs, expectedJobs):
82
+
if actual != expected:
83
+
print(f" ❌ Job does not match: {actual} != {expected}.")
0 commit comments