Skip to content

Commit 799920b

Browse files
Update unit_test.yml
1 parent 4e2fd54 commit 799920b

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/unit_test.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Unit tests
22
on: [push, pull_request]
3+
34
jobs:
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

Comments
 (0)