Skip to content

Add coverage workflow (fail if < 97%) #22

Add coverage workflow (fail if < 97%)

Add coverage workflow (fail if < 97%) #22

Workflow file for this run

# This workflow runs Unit-Tests for compatibility on MacOS
# with the oldest and latest supported Python version.
name: MacOS Test
on: [push, pull_request]
jobs:
build:
runs-on: macos-latest
strategy:
fail-fast: true
matrix:
python-version: ['3.10', '3.14']
steps:
- name: System Update
run: softwareupdate -i -a
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install test utilities
run: |
pip install pytest pytest_mock pyfakefs
- name: Test with pytest
run: pytest tests.py