Skip to content

Commit

Permalink
Update 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 a82590b commit caabd62
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/run_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@ jobs:
include:
- os: ubuntu-latest
os_name: Linux
platform: Linux
- os: macos-13
os_name: macOS_Intel
platform: Mac
- os: macos-latest
os_name: macOS_Apple_Silicon
platform: Mac
- os: windows-latest
os_name: Windows
platform: Windows

steps:
# Setup MATLAB and Runtime
Expand Down Expand Up @@ -64,11 +68,11 @@ jobs:
uses: actions/checkout@v4

- name: Install SPM Python (Mac)
if: runner.os == 'Mac'
if: matrix.platform == 'Mac'
run: mwpython -m pip install -e .

- name: Install SPM Python (Windows, Linux)
if: runner.os != 'Mac'
if: matrix.platform != 'Mac'
run: python -m pip install -e .

- name: Run tests (Mac Apple Silicon)
Expand Down Expand Up @@ -96,7 +100,7 @@ jobs:
if: matrix.os_name == 'Windows'
run: |
echo ${{ env.MATLAB_PATH }}
export PATH=${PATH];${{ env.MATLAB_PATH }}/runtime/win32;${{ env.MATLAB_PATH }}/runtime/win64
export PATH=${PATH};${{ env.MATLAB_PATH }}/runtime/win32;${{ env.MATLAB_PATH }}/runtime/win64
python -m unittest discover tests -v
- name: Run tests (Linux)
Expand Down

0 comments on commit caabd62

Please sign in to comment.