Skip to content

[WIP] Migrate kissbt to Ruff + Mypy (strict) #30

[WIP] Migrate kissbt to Ruff + Mypy (strict)

[WIP] Migrate kissbt to Ruff + Mypy (strict) #30

Workflow file for this run

name: Python package
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f pyproject.toml ]; then
pip install .[dev]
fi
- name: Lint with flake8
run: |
# Run flake8 and fail the build if there are any issues
flake8 . --count --max-complexity=10 --max-line-length=88 --statistics
- name: Lint with black
run: |
black --check .
- name: Lint with isort
run: |
isort . --check-only
- name: Test with pytest
run: |
pytest