[pull] main from PrefectHQ:main #1620
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: Ensure JSON views are valid on PR | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "src/prefect/server/api/collections_data/views/*.json" | |
jobs: | |
submit-update-pr: | |
name: Run JSON schema validation against all views | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install fastjsonschema==2.19.1 | |
- name: Run JSON schema validation | |
run: | | |
python scripts/validate_collection_view_content.py |