Switching from Rye to uv for the workflow #4
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 | |
on: | |
push: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
ci: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
# poetry-version: ["1.8.2"] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v1 | |
with: | |
version: 0.4.5 | |
enable-cache: true | |
- name: Install the project | |
run: uv sync -p ${{ matrix.python-version }} --all-extras --dev | |
- name: Run the lint | |
run: uv run ruff check . | |
- name: Run the format | |
run: uv run ruff format . |