Skip to content

Commit 1e5f0fb

Browse files
committed
test
1 parent 6675137 commit 1e5f0fb

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/scripts/generate-matrix.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
#!/usr/bin/env python3
22

33
import argparse
4-
import copy
54
import json
65
import sys
76

8-
9-
import requests # type: ignore[import-untyped]
10-
117
# please update the cuda version/python version/tensorRT version you want to test
128
# TODO: add cu130 support
139
# # build and upload the ghcr.io/nvidia/tensorrt-incubator/mlir-tensorrt:cuda13.0-ubuntu-llvm17
@@ -35,6 +31,7 @@
3531
},
3632
}
3733

34+
3835
def main(args: list[str]) -> None:
3936
parser = argparse.ArgumentParser()
4037
parser.add_argument(
@@ -45,8 +42,10 @@ def main(args: list[str]) -> None:
4542
)
4643

4744
options = parser.parse_args(args)
48-
if not options.channel in ("nightly", "test", "release"):
49-
raise Exception("--channel is invalid, please provide nightly, test or release")
45+
if options.channel not in ("nightly", "test", "release"):
46+
raise Exception(
47+
"--channel is invalid, please choose from nightly, test or release"
48+
)
5049
channel = options.channel
5150

5251
cuda_versions = CUDA_VERSIONS_DICT[channel]
@@ -56,13 +55,15 @@ def main(args: list[str]) -> None:
5655
matrix_dict = {"include": []}
5756
for cuda_version in cuda_versions:
5857
for trt_version in trt_versions:
59-
matrix_dict["include"].append({
60-
"cuda": cuda_version,
61-
"trt": trt_version,
62-
"docker_image": docker_images[channel][cuda_version],
63-
})
58+
matrix_dict["include"].append(
59+
{
60+
"cuda": cuda_version,
61+
"trt": trt_version,
62+
"docker_image": docker_images[cuda_version],
63+
}
64+
)
6465
print(json.dumps(matrix_dict, indent=4))
6566

6667

6768
if __name__ == "__main__":
68-
main(sys.argv[1:])
69+
main(sys.argv[1:])

0 commit comments

Comments
 (0)