From 83a3aa5b7f19866374a39d9ac8424ab632e56a74 Mon Sep 17 00:00:00 2001 From: Nolan Woods Date: Sat, 2 Jul 2022 06:44:17 -0700 Subject: [PATCH] Patch around check-jsonschema not allowing duplicate anchors (#78) https://github.com/python-jsonschema/check-jsonschema/pull/121 --- .github/workflows/test_validate.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_validate.yaml b/.github/workflows/test_validate.yaml index 4510616..52b7493 100644 --- a/.github/workflows/test_validate.yaml +++ b/.github/workflows/test_validate.yaml @@ -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 @@ -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 }}" \ No newline at end of file + 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 }}" \ No newline at end of file