Unit tests #28
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: 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 |