Replace black/isort/flake8 with ruff, migrate to uv/pyproject.toml #1857
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| pull_request: | |
| env: | |
| DEFAULT_PYTHON: 3.13 | |
| jobs: | |
| pre-commit: | |
| runs-on: "ubuntu-latest" | |
| name: Pre-commit | |
| steps: | |
| - name: Check out the repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Python ${{ env.DEFAULT_PYTHON }} | |
| uses: actions/setup-python@v6.2.0 | |
| with: | |
| python-version: ${{ env.DEFAULT_PYTHON }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| - name: Install dependencies | |
| run: uv sync --group dev | |
| - name: Run pre-commit on all files | |
| env: | |
| SKIP: no-commit-to-branch | |
| run: uv run pre-commit run --all-files --show-diff-on-failure --color=always | |
| tests: | |
| runs-on: "ubuntu-latest" | |
| name: Tests | |
| steps: | |
| - name: Check out the repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Python ${{ env.DEFAULT_PYTHON }} | |
| uses: actions/setup-python@v6.2.0 | |
| with: | |
| python-version: ${{ env.DEFAULT_PYTHON }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v8.1.0 | |
| - name: Install dependencies | |
| run: uv sync --group test | |
| - name: Run tests | |
| run: uv run pytest -v |