docs(contributing): update contributing setup instructions to reflect the uv migration #625
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: ty | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| env: | |
| WORKING_DIRECTORY: "." | |
| jobs: | |
| type-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| run: uv python install 3.11 | |
| - name: Install the project | |
| run: uv sync --all-extras | |
| - name: Run type check with ty | |
| run: uv run ty check --error-on-warning --output-format github instructor/ | |
| - name: Run type check with ty (tests) | |
| run: uv run 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 ty check --python-version 3.9 --python-platform all --error-on-warning --output-format github instructor/ | |
| uv run ty check --python-version 3.14 --python-platform all --error-on-warning --output-format github instructor/ |