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 5a34be0 commit 2963700
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
matrix: ${{ fromJson(needs.setup-matrix.outputs.matrix) }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '${{ matrix.python-version }}'
- run: python --version
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ def assert_valid_matrix(matrix: Any) -> None:


def parse_matrix(input_matrix: str) -> dict:
# Parse every YAML scalar as a string
matrix = yaml.load(input_matrix, Loader=yaml.loader.BaseLoader)
print(matrix)

Expand All @@ -111,7 +112,7 @@ def parse_matrix(input_matrix: str) -> dict:
print(yaml.dump({"matrix": matrix}))

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

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

0 comments on commit 2963700

Please sign in to comment.