Update dependency django-health-check to v4 #318
Workflow file for this run
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: OpenAPI schema validation | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - 'backend/**' | |
| - '.github/workflows/schema-validation.yml' | |
| jobs: | |
| validate-schema: | |
| name: OpenAPI schema validation | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: backend | |
| env: | |
| DJANGO_SETTINGS_MODULE: core.settings.ci | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install Poetry | |
| run: pipx install poetry | |
| - name: Install dyff | |
| run: curl --silent --location https://git.io/JYfAY | sudo bash | |
| - name: Set up Python 3.14 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.14 | |
| cache: 'poetry' | |
| cache-dependency-path: backend/poetry.lock | |
| - name: Install dependencies | |
| run: poetry install --without=debug,test | |
| - name: Generate schema from code | |
| run: poetry run python manage.py spectacular --file schema.new.yaml --validate --fail-on-warn | |
| - name: Compare version controlled schema file with newly generated one | |
| run: dyff between schema.yaml schema.new.yaml --set-exit-code |