Skip to content

Commit

Permalink
Debug parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
druzsan committed Feb 7, 2024
1 parent 4ac4275 commit 5a34be0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,12 @@ def parse_include_exclude(input_include_exclude: str) -> list:
return include_exclude


def assert_valid_extra(extra: Any) -> None: ...
def assert_valid_extra(extra: Any) -> None:
if not isinstance(extra, list):
raise TypeError(
f"Include/exclude must be an array (Python list), but Python "
f"{type(extra)} received."
)


def assert_valid_matrix(matrix: Any) -> None:
Expand Down Expand Up @@ -106,7 +111,7 @@ def parse_matrix(input_matrix: str) -> dict:
print(yaml.dump({"matrix": matrix}))

# output_matrix = json.dumps(matrix)
output_matrix = "{'include':[]}"
output_matrix = "{'os': ['ubuntu-latest', 'macos-latest'], 'include':[]}"

output("matrix", output_matrix)
setenv("MATRIX", output_matrix)

0 comments on commit 5a34be0

Please sign in to comment.