Skip to content

Merge pull request #153 from MTG/test/bootstrap-unit-tests #3

Merge pull request #153 from MTG/test/bootstrap-unit-tests

Merge pull request #153 from MTG/test/bootstrap-unit-tests #3

Workflow file for this run

name: Run unit tests
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
name: Pytest on ${{ matrix.os }} (Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install package and test dependencies
run: python -m pip install -e ".[test]"
- name: Run test suite
run: python -m pytest