factor out pydantic models definition in examples (#1591) #133
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: E2E Type Check | |
| on: | |
| pull_request: | |
| branches: [main, v1] | |
| paths: | |
| - python/** | |
| - examples*/** | |
| - "*.toml" | |
| - ".github/workflows/e2e_type_check.yml" | |
| push: | |
| branches: [main, v1] | |
| paths: | |
| - python/** | |
| - examples*/** | |
| - "*.toml" | |
| - ".github/workflows/e2e_type_check.yml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| e2e-type-check: | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13", "3.14"] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 1 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Sync Python dependencies | |
| run: uv sync --no-dev --group ci | |
| - name: Run mypy-check hook | |
| uses: j178/prek-action@v1 | |
| with: | |
| extra-args: 'mypy-check --all-files' | |
| env: | |
| UV_NO_SYNC: "1" |