feat: add explicit MOSS serving profiles to Gradio client

Signed-off-by: zhifu gao <[email protected]>
This commit is contained in:
zhifu gao
2026-09-07 19:12:22 +00:00
parent 4d89a1f064
commit d91d961e37
3 changed files with 312 additions and 12 deletions
+37
View File
@@ -0,0 +1,37 @@
name: Validate Gradio client
on:
pull_request:
paths:
- "examples/openai_api/gradio_app.py"
- "examples/openai_api/GRADIO*.md"
- "tests/test_gradio_app.py"
- ".github/workflows/test-gradio-client.yml"
push:
branches: [main]
paths:
- "examples/openai_api/gradio_app.py"
- "examples/openai_api/GRADIO*.md"
- "tests/test_gradio_app.py"
- ".github/workflows/test-gradio-client.yml"
permissions:
contents: read
jobs:
gradio-contract:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
GRADIO_ANALYTICS_ENABLED: "False"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install the isolated client test environment
run: python -m pip install gradio==6.26.0 pytest
- name: Check client dependencies
run: python -m pip check
- name: Test real UI components and local HTTP transport without model downloads
run: python -m pytest -q tests/test_gradio_app.py