11name : Unit tests
22on : [push, pull_request]
3+
34jobs :
45 build :
5-
66 runs-on : ${{ matrix.os }}
77 continue-on-error : false
88 strategy :
@@ -13,34 +13,40 @@ jobs:
1313 exclude :
1414 - os : windows-latest
1515 python-version : " 3.13"
16- # Windows chokes on py3.13: https://github.com/numpy/numpy/issues/27894
16+
1717 steps :
1818 - uses : actions/checkout@v4
19+
1920 - name : Set up Python
2021 uses : actions/setup-python@v5
2122 with :
2223 python-version : ${{ matrix.python-version }}
2324 cache : ' pip'
24- # You can test your matrix by printing the current Python version
25+
2526 - name : Display Python version
2627 run : python -c "import sys; print(sys.version)"
28+
2729 - name : Install dependencies
2830 run : |
2931 python -m pip install --upgrade pip
3032 pip install -r requirements.txt
31- - name : Set env var for MATLAB on macOS
32- if : runner.os == 'macOS'
33- run : echo "DYLD_LIBRARY_PATH=/Users/runner/hostedtoolcache/MATLAB/2025.1.999/arm64/MATLAB.app/bin/maca64:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
34- - name : Set env var for MATLAB on Linux
35- if : runner.os == 'Linux'
36- run : echo "LD_LIBRARY_PATH=/opt/hostedtoolcache/MATLAB/2025.1.999/x64/bin/glnxa64:$LD_LIBRARY_PATH" >> $GITHUB_ENV
33+
34+ - name : Set env var for MATLAB on macOS
35+ if : runner.os == 'macOS'
36+ run : echo "DYLD_LIBRARY_PATH=/Users/runner/hostedtoolcache/MATLAB/2025.1.999/arm64/MATLAB.app/bin/maca64:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
37+
38+ - name : Set env var for MATLAB on Linux
39+ if : runner.os == 'Linux'
40+ run : echo "LD_LIBRARY_PATH=/opt/hostedtoolcache/MATLAB/2025.1.999/x64/bin/glnxa64:$LD_LIBRARY_PATH" >> $GITHUB_ENV
41+
3742 - name : Set up MATLAB
3843 uses : matlab-actions/setup-matlab@v2
3944 with :
4045 release : R2025a
46+
4147 - name : Install MATLAB Engine for Python
42- run : |
43- python -m pip install matlabengine==25.1.2
48+ run : python -m pip install matlabengine==25.1.2
49+
4450 - name : Test with pytest
4551 run : |
4652 pip install pytest pytest-cov
0 commit comments