Skip to content

Unit tests

Unit tests #28

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: ["ubuntu-latest", "windows-latest", "macos-latest"]
python-version: ["3.11"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: setup.py
- name: Install dependencies
run: |
python -m pip install -U pip setuptools wheel
pip install -r requirements.txt
pip install -e .
pip list
- name: Run tests & coverage
run: |
coverage run --disable-warnings -m pytest tests/ || true
coverage report -m