Merge pull request #1455 from placeAtlas/cleanup #3016
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate Atlas data | |
on: | |
push: | |
paths: | |
- web/atlas.json | |
pull_request: | |
paths: | |
- web/atlas.json | |
jobs: | |
validate: | |
name: Validate | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Validate | |
run: | | |
pip3 install -r tools/ci/requirements.txt | |
python3 tools/ci/validate_json.py web/atlas.json tools/schema/atlas.json | |
python3 tools/ci/validate_json.py data/patches tools/schema/patch.json |