Skip to content

Merge pull request #105 from wmo-im/issue-100 #141

Merge pull request #105 from wmo-im/issue-100

Merge pull request #105 from wmo-im/issue-100 #141

Workflow file for this run

name: validate schema and examples
on:
push:
paths:
- '**.json'
- '**.yaml'
pull_request:
paths:
- '**.json'
- '**.yaml'
jobs:
main:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
name: Setup Python ${{ matrix.python-version }}
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements 📦
run: |
python3 -m pip install --upgrade pip
pip3 install check-jsonschema pywis-pubsub
pywis-pubsub schema sync
- name: Run JSON Schema validation
run: |
check-jsonschema --check-metaschema schemas/wis2-notification-message-bundled.json
for e in examples/*.json; do check-jsonschema --schemafile schemas/wis2-notification-message-bundled.json $e; done
- name: Run pywis-pubsub ETS validation
run: |
for e in examples/*.json; do pywis-pubsub ets validate $e; done