Replace runtime-type quotation with splice-into-source typechecking #864
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: LLM Integration Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| - 'staging-*' | |
| # Allow manual trigger | |
| workflow_dispatch: | |
| jobs: | |
| test-llm: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.13", "3.14"] | |
| model: ["gpt-4o-mini"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up Python | |
| run: uv python install | |
| - name: Install Python dependencies | |
| run: | | |
| uv sync --all-extras --dev | |
| - name: Run LLM integration tests | |
| env: | |
| EFFECTFUL_LLM_MODEL: ${{ matrix.model }} | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| run: | | |
| uv run pytest tests/test_handlers_llm_provider.py tests/test_handlers_llm_tool_calling_poem.py tests/test_handlers_llm_tool_calling_book.py tests/test_handlers_llm_encoding.py -v --tb=short |