Skip to content

Commit

Permalink
Patch around check-jsonschema not allowing duplicate anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nolan Woods committed Jul 1, 2022
1 parent efbdbd9 commit 271262e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/test_validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ jobs:
cache-dependency-path: .github/workflows/validate_requirements.txt
- run: pip install -r .github/workflows/validate_requirements.txt
- name: Validate grammar tests
run: "check-jsonschema --schemafile grammar_schema.yml ${{ matrix.manifest }}"
run: >
python -c 'import check_jsonschema; from check_jsonschema.loaders import instance; import ruamel.yaml; instance.LOAD_FUNC_BY_TAG["yaml"] = ruamel.yaml.YAML(typ="safe", pure=True).load; check_jsonschema.main()' --schemafile grammar_schema.yml ${{ matrix.manifest }}
# TODO https://github.com/python-jsonschema/check-jsonschema/pull/121
#run: "check-jsonschema --schemafile grammar_schema.yml ${{ matrix.manifest }}"

list-functions:
runs-on: ubuntu-latest
Expand All @@ -57,4 +60,7 @@ jobs:
cache-dependency-path: .github/workflows/validate_requirements.txt
- run: pip install -r .github/workflows/validate_requirements.txt
- name: Validate function spec
run: "check-jsonschema --schemafile function_schema.yml ${{ matrix.manifest }}"
run: >
python -c 'import check_jsonschema; from check_jsonschema.loaders import instance; import ruamel.yaml; instance.LOAD_FUNC_BY_TAG["yaml"] = ruamel.yaml.YAML(typ="safe", pure=True).load; check_jsonschema.main()' --schemafile function_schema.yml ${{ matrix.manifest }}
# TODO https://github.com/python-jsonschema/check-jsonschema/pull/121
# run: "check-jsonschema --schemafile function_schema.yml ${{ matrix.manifest }}"

0 comments on commit 271262e

Please sign in to comment.