mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
test empty matrix
This commit is contained in:
parent
c66ecde2a8
commit
910c2aa7bb
1 changed files with 8 additions and 10 deletions
18
tools/ci.py
18
tools/ci.py
|
@ -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():
|
||||
|
|
Loading…
Add table
Reference in a new issue