add python 3.12 runners for unit testing #40
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 Testing Pipeline | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: Install pycatch22 | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytest | |
pip install numpy | |
pip install . | |
- name: Run basic unit tests | |
run: | | |
pytest -v ./tests/unit_tests.py | |
- name: Run feature benchmarking tests | |
run: | | |
pytest -v ./tests/test_features.py |