Dropped Python version and updated dependencies. Bumped package versi… #23
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: 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 | |