ci: add code check workflow #2
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: Check code format and typing | |
| on: | |
| pull_request: | |
| branches: [ develop ] | |
| jobs: | |
| lint: | |
| name: Check Code Formatting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Run Ruff Formatter | |
| if: always() | |
| uses: astral-sh/ruff-action@v4.1.0 | |
| with: | |
| args: "format --check" | |
| type-check: | |
| name: Type Checking | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: "pyproject.toml" | |
| cache: 'pip' | |
| - name: Install Dependencies | |
| run: | | |
| pip install . | |
| pip install basedpyright | |
| - name: Run Basedpyright | |
| run: basedpyright |