97e91a83f3
Ruff / Ruff (push) Waiting to run
Test / Core Tests (push) Waiting to run
Test / Offline Coverage Tests (Python 3.10) (push) Waiting to run
Test / Offline Coverage Tests (Python 3.11) (push) Waiting to run
Test / Offline Coverage Tests (Python 3.12) (push) Waiting to run
Test / Offline Coverage Tests (Python 3.13) (push) Waiting to run
Test / Offline Coverage Tests (Python 3.9) (push) Waiting to run
Test / Full Coverage (Python 3.11) (push) Waiting to run
Test / Core Provider Tests (OpenAI) (push) Blocked by required conditions
Test / Core Provider Tests (Anthropic) (push) Blocked by required conditions
Test / Core Provider Tests (Google) (push) Blocked by required conditions
Test / Core Provider Tests (Other) (push) Blocked by required conditions
Test / Anthropic Tests (push) Blocked by required conditions
Test / Gemini Tests (push) Blocked by required conditions
Test / Google GenAI Tests (push) Blocked by required conditions
Test / Vertex AI Tests (push) Blocked by required conditions
Test / OpenAI Tests (push) Blocked by required conditions
Test / Writer Tests (push) Blocked by required conditions
Test / Auto Client Tests (push) Blocked by required conditions
ty / type-check (push) Waiting to run
44 lines
1.7 KiB
YAML
44 lines
1.7 KiB
YAML
name: ty
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
env:
|
|
WORKING_DIRECTORY: "."
|
|
|
|
jobs:
|
|
type-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v6
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
|
with:
|
|
enable-cache: true
|
|
python-version: "3.11"
|
|
- name: Set up Python
|
|
run: uv python install 3.11
|
|
- name: Install the project
|
|
run: uv sync --frozen --all-extras
|
|
- name: Run type check with ty
|
|
run: uv run --frozen ty check --error-on-warning --output-format github instructor/
|
|
- name: Run type check with ty (tests)
|
|
run: uv run --frozen ty check --config-file ty-tests.toml --error-on-warning --output-format github tests
|
|
- name: Check installed-package public typing
|
|
run: tests/typing/check_installed_package.sh
|
|
- name: Check supported Python versions and platforms
|
|
run: |
|
|
uv run --frozen ty check --python-version 3.9 --python-platform all --error-on-warning --output-format github instructor/
|
|
uv run --frozen ty check --python-version 3.14 --python-platform all --error-on-warning --output-format github instructor/
|
|
- name: Check tests on supported Python versions and platforms
|
|
run: |
|
|
uv run --frozen ty check --config-file ty-tests.toml --python-version 3.9 --python-platform all --error-on-warning --output-format github tests
|
|
uv run --frozen ty check --config-file ty-tests.toml --python-version 3.14 --python-platform all --error-on-warning --output-format github tests
|