| name: Validate examples (jsonschema) | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install jsonschema | |
| - name: Debug - list expected files | |
| run: | | |
| pwd | |
| ls -la | |
| echo "---- datasets ----" | |
| ls -la datasets || true | |
| echo "---- datasets/schema ----" | |
| ls -la datasets/schema || true | |
| echo "---- examples ----" | |
| ls -la examples || true | |
| echo "---- scripts ----" | |
| ls -la scripts || true | |
| - name: Validate (script) | |
| run: | | |
| python scripts/validate.py | |