Skip to content

Merge pull request #434 from calliope-project/docs-zenodo-link-patch #900

Merge pull request #434 from calliope-project/docs-zenodo-link-patch

Merge pull request #434 from calliope-project/docs-zenodo-link-patch #900

name: Tests of YAML configuration and schema
on:
push:
branches:
- main
- develop
pull_request:
jobs:
validate:
name: Validate configuration against a schema and validate the schema itself
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install jsonschema PyYAML
- name: Validate default config
run: python ./tests/validate_schema.py ./config/schema.yaml --config ./config/default.yaml
- name: Validate minimal config
run: python ./tests/validate_schema.py ./config/schema.yaml --config ./config/minimal.yaml
- name: Validate schema itself
run: python ./tests/validate_schema.py ./config/schema.yaml