Skip to content

Commit 29b1e2d

Browse files
committed
Fixed artifact name checking.
1 parent 0edc7c4 commit 29b1e2d

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

.github/actions/CheckArtifactNames/action.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ runs:
2626
id: check
2727
shell: python
2828
run: |
29+
from json import loads as json_loads
30+
from sys import exit
31+
2932
from pyTooling.Common import zipdicts
3033
3134
actualArtifactNames = json_loads("""${{ inputs.generated-names }}""".replace("'", '"'))
@@ -52,15 +55,21 @@ runs:
5255
5356
errors = 0
5457
if len(actualArtifactNames) != len(expectedArtifacts):
55-
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
58+
print(f"Number of 'artifact_names' does not match: {len(actualArtifactNames)} != {len(expectedArtifacts)}.")
5659
errors += 1
5760
else:
61+
print("✅ Number of 'artifact_names' as expected.")
62+
print("Checking artifact names ...")
63+
5864
for key, actual, expected in zipdicts(actualArtifactNames, expectedArtifacts):
5965
if actual != expected:
60-
print(f"Artifact name '{key}' does not match: {actual} != {expected}.")
66+
print(f"Artifact name '{key}' does not match: {actual} != {expected}.")
6167
errors += 1
68+
else:
69+
print(f" ☑ Artifact name as expected: {key} ⇢ {actual}.")
6270
6371
if errors == 0:
64-
print(f"All checks PASSED.")
65-
66-
exit(errors)
72+
print("✅ All checks PASSED.")
73+
else:
74+
print(f"❌ Counted {errors} errors.")
75+
exit(errors)

.github/workflows/_Checking_Parameters.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ jobs:
120120
uses: ./.github/actions/CheckJobMatrix
121121
with:
122122
expected-default-version: '3.14'
123-
expected-python-versions: '["3.9", "3.10", "3.11", "3.12", "3.13"]'
123+
expected-python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
124124
expected-systems: '["windows"]'
125125
expected-exclude-jobs: '[]'
126-
expected-include-jobs: '["mingw64:3.12", "ucrt64:3.12"]'
126+
expected-include-jobs: '["mingw32:3.12", "mingw64:3.12"]'
127127
generated-default-version: ${{ needs.Params_Systems.outputs.python_version }}
128128
generated-jobmatrix: ${{ needs.Params_Systems.outputs.python_jobs }}
129129

0 commit comments

Comments
 (0)