1
1
name : Unit tests
2
2
on : [push, pull_request]
3
+
3
4
jobs :
4
5
build :
5
-
6
6
runs-on : ${{ matrix.os }}
7
7
continue-on-error : false
8
8
strategy :
@@ -13,34 +13,40 @@ jobs:
13
13
exclude :
14
14
- os : windows-latest
15
15
python-version : " 3.13"
16
- # Windows chokes on py3.13: https://github.com/numpy/numpy/issues/27894
16
+
17
17
steps :
18
18
- uses : actions/checkout@v4
19
+
19
20
- name : Set up Python
20
21
uses : actions/setup-python@v5
21
22
with :
22
23
python-version : ${{ matrix.python-version }}
23
24
cache : ' pip'
24
- # You can test your matrix by printing the current Python version
25
+
25
26
- name : Display Python version
26
27
run : python -c "import sys; print(sys.version)"
28
+
27
29
- name : Install dependencies
28
30
run : |
29
31
python -m pip install --upgrade pip
30
32
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
+
37
42
- name : Set up MATLAB
38
43
uses : matlab-actions/setup-matlab@v2
39
44
with :
40
45
release : R2025a
46
+
41
47
- 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
+
44
50
- name : Test with pytest
45
51
run : |
46
52
pip install pytest pytest-cov
0 commit comments