Skip to content

Commit c2e9bd2

Browse files
update unit test
1 parent 1159bc2 commit c2e9bd2

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/unit_test.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,13 @@ jobs:
3030
run: |
3131
python -m pip install --upgrade pip
3232
pip install -r requirements.txt
33-
- name: Check out repository
34-
uses: actions/checkout@v4
3533
- name: Set environment variables for MATLAB Engine
36-
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
34+
if: ${{ runner.os == 'macOS'}}
35+
run: |
36+
echo "DYLD_LIBRARY_PATH=/Users/runner/hostedtoolcache/MATLAB/2025.1.999/arm64/MATLAB.app/bin/maca64:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
37+
if: ${{ runner.os == 'Linux'}}
3738
run: |
38-
if [[ "${{ runner.os }}" == "macOS" ]]; then
39-
echo "DYLD_LIBRARY_PATH=/Users/runner/hostedtoolcache/MATLAB/2025.1.999/arm64/MATLAB.app/bin/maca64:$DYLD_LIBRARY_PATH" >> $GITHUB_ENV
40-
elif [[ "${{ runner.os }}" == "Linux" ]]; then
4139
echo "LD_LIBRARY_PATH=/opt/hostedtoolcache/MATLAB/2025.1.999/x64/bin/glnxa64:$LD_LIBRARY_PATH" >> $GITHUB_ENV
42-
fi
4340
- name: Set up MATLAB
4441
uses: matlab-actions/setup-matlab@v2
4542
with:

0 commit comments

Comments
 (0)