Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Patch around check-jsonschema not allowing duplicate anchors #78

Merged
merged 1 commit into from
Jul 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}"