Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/graphql-schema.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: GraphQL schema

on:
pull_request:
paths:
- "backend/**"
- ".github/workflows/graphql-schema.yml"

permissions:
contents: read

jobs:
schema:
name: Generated schema is up to date
runs-on: ubuntu-24.04

steps:
- name: Check out repository
uses: actions/checkout@v6
with:
persist-credentials: false

- uses: actions/setup-python@v5
with:
python-version: "3.13.5"

- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b
with:
version: "0.5.5"
enable-cache: true

- name: Install dependencies
working-directory: backend
run: uv sync --locked --no-dev

- name: Generate schema
working-directory: backend
run: uv run --no-sync python manage.py graphql_schema
env:
DJANGO_SETTINGS_MODULE: pycon.settings.test
STRIPE_SECRET_API_KEY: ""
STRIPE_SUBSCRIPTION_PRICE_ID: ""
STRIPE_WEBHOOK_SIGNATURE_SECRET: ""
CELERY_BROKER_URL: ""
CELERY_RESULT_BACKEND: ""

- name: Check committed schema
run: git diff --exit-code -- backend/schema.graphql
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ badge-service/badges.zip

*.generated.ts
backend/custom_admin/src/types.ts
backend/schema.graphql
backend/__pypackages__/
backend/custom_admin/.astro/
backend/custom_admin/core.*
Expand Down
Loading
Loading