Skip to content

Merge pull request #70 from DynamicsAndNeuralSystems/jmoo2880-python-… #358

Merge pull request #70 from DynamicsAndNeuralSystems/jmoo2880-python-…

Merge pull request #70 from DynamicsAndNeuralSystems/jmoo2880-python-… #358

name: Unit Testing Pipeline
on:
push:
jobs:
test-ubuntu:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Setup python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install octave
run: |
sudo apt-get update
sudo apt-get install -y build-essential octave
- name: Install pyspi dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools
pip install -r requirements.txt
pip install .
- name: Run pyspi calculator/utils unit tests
run: |
pytest -v ./tests/test_calc.py
pytest -v ./tests/test_utils.py
- name: Run pyspi SPI unit tests
run: |
pytest -v ./tests/test_SPIs.py