feat: add new article on migrating to uv (#1284) #1650
This file contains 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: Pyright | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
env: | |
WORKING_DIRECTORY: "." | |
PYRIGHT_OUTPUT_FILENAME: "pyright.log" | |
jobs: | |
Pyright: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
python-version: ["3.9", "3.10", "3.11"] | |
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 ${{ matrix.python-version }} | |
- name: Install the project | |
run: uv sync --all-extras | |
- name: Run pyright | |
run: uv run pyright |