update lint workflow #10
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: Lint Code | |
| on: | |
| push: | |
| branches: [ dev, main ] | |
| pull_request: | |
| branches: [ dev ] | |
| jobs: | |
| lint_code: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| run: | | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| ~/.local/bin/uv sync --all-extras | |
| - name: Lint with ruff | |
| run: | | |
| ~/.local/bin/uv run ruff check github_rest_api/ tests/ | |
| - name: Lint with Ty | |
| run: | | |
| ~/.local/bin/uv run ty check | |
| - name: Check code format | |
| run: | | |
| ~/.local/bin/uv run ruff format --check ./ |