Skip to content

Replace black and isort with ruff #289

Replace black and isort with ruff

Replace black and isort with ruff #289

name: Test Pull Request Branch
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
name: Test (${{ matrix.python }})
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.9", "3.10", "3.11", "3.12", "3.13"]
container:
image: python:${{ matrix.python }}
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
- name: Commit Linter
uses: wagoid/commitlint-github-action@v5
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16
- id: install
name: Install requirements
run: |
pip install pip poetry --upgrade
./scripts/install
- id: format
name: Code format checking
run: ./scripts/format --check .
- id: lint
name: Code linting
run: ./scripts/lint --output-format=github .
- id: types
name: Static types check
run: ./scripts/types
- id: tests
name: Tests
run: ./scripts/test