feat(pydantic-ai): migrate onto unified harness surface (PR4) #23
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: Harness Integration | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| paths: | |
| - "src/agentex/lib/core/harness/**" | |
| - "src/agentex/lib/adk/_modules/**" | |
| - "tests/lib/core/harness/test_harness_pydantic_ai_*.py" | |
| - ".github/workflows/harness-integration.yml" | |
| jobs: | |
| conformance: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 | |
| with: | |
| version: '0.10.2' | |
| - name: Bootstrap | |
| run: ./scripts/bootstrap | |
| # Defer to scripts/test so the harness suite runs under the exact same | |
| # invocation as the main CI test job: DEFER_PYDANTIC_BUILD=false and | |
| # `uv run --isolated --all-packages --all-extras pytest`, across the | |
| # min/max supported Python versions. Running `uv run pytest` directly | |
| # would risk an all-extras-only dep passing locally but failing in CI. | |
| - name: Conformance suite | |
| run: ./scripts/test tests/lib/core/harness/ -v | |
| # Offline pydantic-ai integration tests (sync / async / temporal channels). | |
| # These use pydantic-ai TestModel + fake streaming/tracing and require no live | |
| # infrastructure. Enabled here for PR 4 (pydantic-ai migration). Future harness | |
| # migration PRs (5-8) should add their integration-test paths to this matrix. | |
| live-matrix: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| channel: [sync, async, temporal] | |
| fail-fast: false | |
| name: pydantic-ai-${{ matrix.channel }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 | |
| with: | |
| version: '0.10.2' | |
| - name: Bootstrap | |
| run: ./scripts/bootstrap | |
| - name: pydantic-ai ${{ matrix.channel }} integration tests (offline, TestModel) | |
| run: | | |
| ./scripts/test tests/lib/core/harness/test_harness_pydantic_ai_${{ matrix.channel }}.py -v |