feat(live): add @pipeline decorator for simplified pipeline creation #2442
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: 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 |