Files
pydantic--pydantic-ai/.github/workflows/harness-compat.yml
T
wehub-resource-sync 9201ef759e
CI / lint (push) Waiting to run
CI / mypy (push) Waiting to run
CI / docs (push) Waiting to run
CI / test on 3.10 (standard) (push) Waiting to run
CI / test on 3.11 (standard) (push) Waiting to run
CI / test on 3.12 (standard) (push) Waiting to run
CI / test on 3.10 (all-extras) (push) Waiting to run
CI / test on 3.11 (all-extras) (push) Waiting to run
CI / test on 3.12 (all-extras) (push) Waiting to run
CI / test on 3.13 (all-extras) (push) Waiting to run
CI / test on 3.14 (pydantic-evals) (push) Waiting to run
Harness Compat / harness compat (push) Waiting to run
CI / test on 3.13 (standard) (push) Waiting to run
CI / test on 3.14 (standard) (push) Waiting to run
CI / test on 3.14 (all-extras) (push) Waiting to run
CI / test on 3.10 (pydantic-ai-slim) (push) Waiting to run
CI / test on 3.11 (pydantic-ai-slim) (push) Waiting to run
CI / test on 3.12 (pydantic-ai-slim) (push) Waiting to run
CI / test on 3.13 (pydantic-ai-slim) (push) Waiting to run
CI / test on 3.14 (pydantic-ai-slim) (push) Waiting to run
CI / test on 3.10 (pydantic-evals) (push) Waiting to run
CI / test on 3.11 (pydantic-evals) (push) Waiting to run
CI / test on 3.12 (pydantic-evals) (push) Waiting to run
CI / test on 3.13 (pydantic-evals) (push) Waiting to run
CI / test on 3.10 (lowest-versions) (push) Waiting to run
CI / test on 3.11 (lowest-versions) (push) Waiting to run
CI / test on 3.12 (lowest-versions) (push) Waiting to run
CI / test on 3.13 (lowest-versions) (push) Waiting to run
CI / test on 3.14 (lowest-versions) (push) Waiting to run
CI / test examples on 3.11 (push) Waiting to run
CI / test examples on 3.12 (push) Waiting to run
CI / test examples on 3.13 (push) Waiting to run
CI / test examples on 3.14 (push) Waiting to run
CI / coverage (push) Blocked by required conditions
CI / check (push) Blocked by required conditions
CI / deploy-docs (push) Blocked by required conditions
CI / deploy-docs-preview (push) Blocked by required conditions
CI / build release artifacts (push) Blocked by required conditions
CI / publish to PyPI (push) Blocked by required conditions
CI / Send tweet (push) Blocked by required conditions
chore: import upstream snapshot with attribution
2026-07-13 13:27:52 +08:00

40 lines
1.5 KiB
YAML

name: Harness Compat
# Verifies that pydantic-ai changes don't break the pydantic-ai-harness lint /
# typecheck / test suite. Calls the harness's `compat-test.yml` reusable
# workflow with the change's HEAD SHA + repo (so fork PRs are tested against
# the code in the fork, not main).
#
# Triggers:
# - PRs touching `pydantic_ai_slim/**`: required to merge.
# - Pushes to `main`: confirms the merged commit still works.
# - Push of `v*` tags: gates a release on harness compatibility.
#
# Fork PRs run with `contents: read` only and no secrets passed to the called
# workflow — same exposure as the regular test jobs in `ci.yml`. If the called
# workflow ever grows steps that need elevated permissions or secrets, add a
# fork gate (e.g. require a `safe-for-ci` label) before merging that change.
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'pydantic_ai_slim/**'
- '.github/workflows/harness-compat.yml'
push:
branches: [main]
tags: ['v*']
permissions:
contents: read
jobs:
harness-compat:
name: harness compat
# Same-org reusable workflow under shared maintenance; SHA pinning would force a coordination bump
# on every harness change without security benefit. Ignore configured in `.github/zizmor.yml`.
uses: pydantic/pydantic-ai-harness/.github/workflows/compat-test.yml@main
with:
pydantic-ai-ref: ${{ github.event.pull_request.head.sha || github.sha }}
pydantic-ai-repo: ${{ github.event.pull_request.head.repo.full_name || github.repository }}