| name: CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| 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 -e ".[dev]" | |
| - name: Validate resource catalog | |
| run: python scripts/validate_resource_catalog.py | |
| - name: Generate resource views | |
| run: python scripts/generate_resource_views.py | |
| - name: Ensure generated files are committed | |
| run: git diff --exit-code | |
| - name: Check markdown links format | |
| run: python scripts/check_links.py | |
| - name: Validate normalization seed | |
| run: python scripts/validate_normalization.py data/processed/normalization_seed_v0.1.tsv | |
| - name: Run tests | |
| run: python -m pytest -q | |