Skip to content

docker: Remove conda from everywhere but comfy (#854) #2357

docker: Remove conda from everywhere but comfy (#854)

docker: Remove conda from everywhere but comfy (#854) #2357

name: Check OpenAPI spec changes
on:
push:
branches:
- main
paths:
- "runner/**/*.py"
- "runner/requirements.txt"
- ".github/workflows/validate-openapi-on-pr.yaml"
pull_request:
paths:
- "runner/**/*.py"
- "runner/requirements.txt"
- ".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: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r runner/requirements.txt
- name: Generate AI OpenAPI specification
working-directory: runner
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