Skip to content

Dropped Python version and updated dependencies. Bumped package versi… #23

Dropped Python version and updated dependencies. Bumped package versi…

Dropped Python version and updated dependencies. Bumped package versi… #23

name: Linting and Tests
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python3 -
PATH="${PATH}:${HOME}/.local/bin" && export PATH
poetry config virtualenvs.create false && poetry install --with dev
- name: Lint
run: |
python -m black --check .
python -m ruff check .
python -m mypy .
- name: Run tests
run: python -m pytest -n auto