Feat: integrate uv in the ci pipelines and the docs #882
Workflow file for this run
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: Lint PR | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: | |
- "3.10" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
run: uv python install ${{ matrix.python-version }} | |
- name: Install dependencies with uv | |
run: | | |
uv venv --seed | |
uv python pin 3.10 | |
uv run python -m pip install --upgrade pip | |
uv run pip install ruff isort black | |
- name: Run linters | |
run: | | |
uv run ruff check . | |
uv run isort --check-only --diff . |