Skip to content

feat(live): add @pipeline decorator for simplified pipeline creation #2442

feat(live): add @pipeline decorator for simplified pipeline creation

feat(live): add @pipeline decorator for simplified pipeline creation #2442

name: Check OpenAPI spec changes
on:
push:
branches:
- main
paths:
- "runner/**/*.py"
- "runner/pyproject.toml"
- "runner/uv.lock"
- ".github/workflows/validate-openapi-on-pr.yaml"
pull_request:
paths:
- "runner/**/*.py"
- "runner/pyproject.toml"
- "runner/uv.lock"
- ".github/workflows/validate-openapi-on-pr.yaml"
workflow_dispatch:
jobs:
check-openapi:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.9.9"
- name: Install Python dependencies
working-directory: runner
run: |
uv python install 3.11
uv sync --locked --extra batch
- name: Generate AI OpenAPI specification
working-directory: runner
run: |
uv run python gen_openapi.py
- name: Check for OpenAPI spec changes
run: |
if ! git diff --exit-code; then
echo "::error:: OpenAPI spec has changed. Please run 'python gen_openapi.py' in the 'runner' directory and commit the changes."
exit 1
fi