test empty matrix

This commit is contained in:
Daniel A. Wozniak 2024-12-05 17:47:32 -07:00 committed by Daniel Wozniak
parent c66ecde2a8
commit 910c2aa7bb

View file

@ -1706,16 +1706,14 @@ def workflow_config(
ctx.info(f"{'==== test matrix ====':^80s}")
ctx.info(f"{pprint.pformat(test_matrix)}")
ctx.info(f"{'==== end test matrix ====':^80s}")
config["pkg-test-matrix"] = {}
config["test-matrix"] = {}
for platform in platforms:
config["pkg-test-matrix"][platform] = {} # type: ignore
if pkg_test_matrix.get(platform, {}):
config["pkg-test-matrix"][platform]["include"] = pkg_test_matrix[platform] # type: ignore
config["test-matrix"][platform] = {} # type: ignore
if test_matrix.get(platform, {}):
config["test-matrix"][platform]["include"] = test_matrix[platform] # type: ignore
config["pkg-test-matrix"] = {"linux": [], "macos": [], "windows": []}
config["test-matrix"] = {"linux": [], "macos": [], "windows": []}
#config["pkg-test-matrix"] = pkg_test_matrix
#if not any([_ for _ in pkg_test_matrix]):
# jobs["test-pkg"] = False
#config["test-matrix"] = text_matrix
#if not any([_ for _ in test_matrix]):
# jobs["test"] = False
ctx.info("Jobs selected are")
for x, y in jobs.items():