Skip to content

Add workflow

Add workflow #16

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest]
python: ['3.10', '3.11', '3.12']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: install poetry
run: |
python -m pip install --upgrade pip wheel pipx
python -m pipx install poetry
- name: install dependencies
run: poetry install
- name: run tests
run: poetry run pytest
- name: run linter
run: |
poetry run ruff check
poetry run ruff format