refactor: make catalog repository data-only #3
This file contains hidden or 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 | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: validate-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version-file: ".python-version" | |
| cache: pip | |
| - name: Install Python dependencies | |
| run: python -m pip install --disable-pip-version-check -r requirements-dev.lock.txt | |
| - name: Run tests | |
| run: python -m pytest | |
| - name: Validate catalog | |
| run: python tools/validate_catalog.py | |
| - name: Verify public JSON export | |
| run: python tools/export_catalog.py --check |