Skip to content

ci config and pre-commit hooks #38

ci config and pre-commit hooks

ci config and pre-commit hooks #38

Workflow file for this run

name: Run Python Tests
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: snok/install-poetry@v1
with:
version: 1.7.1
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install packages
run: poetry install
- name: Run tests with pytest
run: poetry run pytest
- name: Ruff
run: poetry run ruff check --diff
- name: Ruff format
run: poetry run ruff format --diff
- name: Mypy
run: poetry run mypy .