ci(github): refactor test.yml #337
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: lint | |
| on: [push, pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install dependencies | |
| run: uv sync --extra lint | |
| - name: Type check | |
| run: uv run mypy . | |
| - name: Run Black | |
| run: uv run black --check . | |
| - name: Run Ruff | |
| run: uv run ruff check | |
| - name: Run pre-commit | |
| run: uv run pre-commit run --all-files |