File tree Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Original file line number Diff line number Diff line change 1
1
name : Unit tests
2
+
2
3
on : [push, pull_request]
3
4
4
5
jobs :
5
6
build :
7
+
6
8
runs-on : ${{ matrix.os }}
7
9
continue-on-error : false
8
10
strategy :
@@ -13,40 +15,21 @@ jobs:
13
15
exclude :
14
16
- os : windows-latest
15
17
python-version : " 3.13"
16
-
18
+ # Windows chokes on py3.13: https://github.com/numpy/numpy/issues/27894
17
19
steps :
18
20
- uses : actions/checkout@v4
19
-
20
21
- name : Set up Python
21
22
uses : actions/setup-python@v5
22
23
with :
23
24
python-version : ${{ matrix.python-version }}
24
25
cache : ' pip'
25
-
26
+ # You can test your matrix by printing the current Python version
26
27
- name : Display Python version
27
28
run : python -c "import sys; print(sys.version)"
28
-
29
29
- name : Install dependencies
30
30
run : |
31
31
python -m pip install --upgrade pip
32
32
pip install -r requirements.txt
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
-
42
- - name : Set up MATLAB
43
- uses : matlab-actions/setup-matlab@v2
44
- with :
45
- release : R2025a
46
-
47
- - name : Install MATLAB Engine for Python
48
- run : python -m pip install matlabengine==25.1.2
49
-
50
33
- name : Test with pytest
51
34
run : |
52
35
pip install pytest pytest-cov
You can’t perform that action at this time.
0 commit comments