Merge branch 'main' into deploy #297
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: Formatting and Type Checks | |
on: ["push", "pull_request"] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.12 and PDM | |
uses: pdm-project/setup-pdm@v3 | |
with: | |
python-version: "3.12" | |
- name: Install dependencies | |
run: | | |
pdm install | |
- name: Run isort check | |
run: | | |
pdm run isort . --check --diff | |
- name: Run black check | |
run: | | |
pdm run black . --check --diff | |
- name: Run pyright check | |
run: | | |
pdm run npx pyright |