Skip to content

51 improve code coverage #177

51 improve code coverage

51 improve code coverage #177

Workflow file for this run

name: Testing
on:
push:
branches: [ "main", "dev" ]
pull_request:
branches: [ "main", "dev" ]
workflow_dispatch:
permissions:
contents: read
jobs:
testing:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: poetry install
- name: Run lint checks
run: poetry run ruff check src tests
- name: Run type checks
run: poetry run mypy
- name: Run tests
run: poetry run pytest --cov
- name: Check coverage
run: poetry run coverage report --fail-under=85