Skip to content

Commit 0a64986

Browse files
committed
test
1 parent 3206da7 commit 0a64986

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/scripts/generate-tensorrt-test-matrix.py

+14-3
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,21 @@ def main(args: list[str]) -> None:
6161
matrix_dict = json.loads(options.matrix)
6262
includes = matrix_dict["include"]
6363
assert len(includes) > 0
64-
channel = includes[0].channel
65-
if "windows" in includes[0].validation_runner:
64+
if "channel" not in includes[0]:
65+
raise Exception(f"channel field is missing from the matrix: {options.matrix}")
66+
channel = includes[0]["channel"]
67+
if channel not in ("nightly", "test", "release"):
68+
raise Exception(
69+
f"channel field: {channel} is not supported, currently supported value: nightly, test, release"
70+
)
71+
72+
if "validation_runner" not in includes[0]:
73+
raise Exception(
74+
f"validation_runner field is missing from the matrix: {options.matrix}"
75+
)
76+
if "windows" in includes[0]["validation_runner"]:
6677
arch = "windows"
67-
elif "linux" in includes[0].validation_runner:
78+
elif "linux" in includes[0]["validation_runner"]:
6879
arch = "linux"
6980
else:
7081
raise Exception(

0 commit comments

Comments
 (0)