mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 07:09:11 +02:00
* Add fastmcp-client workspace package * Fix client package static checks * Document client-only package * Harden fastmcp-client package split * Preserve forwarded headers in full package * Switch to fastmcp-slim package * Fix fastmcp-slim release edges * Match pydantic-style slim layout * Polish fastmcp-slim packaging
55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
name: Schema Crash Test
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
paths:
|
|
- "fastmcp_slim/fastmcp/utilities/json_schema_type.py"
|
|
- "fastmcp_slim/fastmcp/utilities/json_schema.py"
|
|
- "fastmcp_slim/fastmcp/utilities/openapi/**"
|
|
- "fastmcp_slim/fastmcp/server/providers/openapi/**"
|
|
- "fastmcp_slim/fastmcp/client/mixins/tools.py"
|
|
- "tests/utilities/json_schema_type/test_real_world_schemas.py"
|
|
- ".github/workflows/run-schema-crash-test.yml"
|
|
|
|
pull_request:
|
|
paths:
|
|
- "fastmcp_slim/fastmcp/utilities/json_schema_type.py"
|
|
- "fastmcp_slim/fastmcp/utilities/json_schema.py"
|
|
- "fastmcp_slim/fastmcp/utilities/openapi/**"
|
|
- "fastmcp_slim/fastmcp/server/providers/openapi/**"
|
|
- "fastmcp_slim/fastmcp/client/mixins/tools.py"
|
|
- "tests/utilities/json_schema_type/test_real_world_schemas.py"
|
|
- ".github/workflows/run-schema-crash-test.yml"
|
|
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
schema_crash_test:
|
|
name: "Real-world schema crash test (232K schemas)"
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 45
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v7
|
|
|
|
- name: Set up Python
|
|
run: uv python install 3.12
|
|
|
|
- name: Install dependencies
|
|
run: uv sync
|
|
|
|
- name: Clone openapi-directory
|
|
run: git clone --depth 1 https://github.com/APIs-guru/openapi-directory.git /tmp/openapi-directory
|
|
|
|
- name: Run schema crash test
|
|
env:
|
|
RUN_REAL_WORLD_SCHEMA_TEST: "1"
|
|
OPENAPI_DIRECTORY_PATH: /tmp/openapi-directory
|
|
run: uv run pytest tests/utilities/json_schema_type/test_real_world_schemas.py -m integration -v -n auto --timeout-method=thread
|