chore(deps): update dependency ruff to v0.9.2 #477
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
linters: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "**/pyproject.toml" | |
- name: Installing dependencies | |
run: uv sync --all-extras --dev | |
- name: set PY env variable for pre-commit cache | |
run: echo "PY=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit|${{env.PY}}|${{hashFiles('.pre-commit-config.yaml')}} | |
- name: Run linters | |
run: > | |
uv run --frozen | |
pre-commit run --all --show-diff-on-failure --color=always | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "**/pyproject.toml" | |
python-version: ${{ matrix.python-version }} | |
- name: Installing dependencies | |
run: uv sync --all-extras --dev | |
- name: Run tests | |
run: uv run --frozen pytest |