Skip to content

Commit 83a3aa5

Browse files
Patch around check-jsonschema not allowing duplicate anchors (#78)
python-jsonschema/check-jsonschema#121
1 parent efbdbd9 commit 83a3aa5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/test_validate.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ jobs:
3333
cache-dependency-path: .github/workflows/validate_requirements.txt
3434
- run: pip install -r .github/workflows/validate_requirements.txt
3535
- name: Validate grammar tests
36-
run: "check-jsonschema --schemafile grammar_schema.yml ${{ matrix.manifest }}"
36+
run: >
37+
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 }}
38+
# TODO https://github.com/python-jsonschema/check-jsonschema/pull/121
39+
#run: "check-jsonschema --schemafile grammar_schema.yml ${{ matrix.manifest }}"
3740

3841
list-functions:
3942
runs-on: ubuntu-latest
@@ -57,4 +60,7 @@ jobs:
5760
cache-dependency-path: .github/workflows/validate_requirements.txt
5861
- run: pip install -r .github/workflows/validate_requirements.txt
5962
- name: Validate function spec
60-
run: "check-jsonschema --schemafile function_schema.yml ${{ matrix.manifest }}"
63+
run: >
64+
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 }}
65+
# TODO https://github.com/python-jsonschema/check-jsonschema/pull/121
66+
# run: "check-jsonschema --schemafile function_schema.yml ${{ matrix.manifest }}"

0 commit comments

Comments
 (0)