Skip to content

Commit

Permalink
Create run_unit_tests.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
johmedr authored Nov 21, 2024
1 parent 09c3834 commit ba5f123
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Run unit tests for SPM Python
on:
workflow_dispatch:
push:
pull_request:

jobs:
unit-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
matlab: ["latest"]
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
- os: ubuntu-latest
- os: macos-13
- os: macos-latest
- os: windows-latest

steps:
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: ${{matrix.matlab}}

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Check out repository
uses: actions/checkout@v4

- name: Install repository
run: python -m pip install -e .

- name: Run tests
run: python -m unittest discover tests -v

0 comments on commit ba5f123

Please sign in to comment.