Bump ruff from 0.2.1 to 0.2.2 #108
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: Check format, lint and tests | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Install Poetry | |
run: pipx install poetry | |
- name: Validate pyproject.toml and poetry.lock | |
run: poetry check | |
- name: Install dependencies | |
run: poetry install --with dev | |
- name: Run format and lint | |
run: | | |
poetry run ruff format --check --diff . | |
poetry run ruff check --diff . | |
- name: Run Tests | |
run: poetry run pytest |