@@ -11,8 +11,11 @@ concurrency:
1111 cancel-in-progress : true
1212
1313jobs :
14+ run_ruff :
15+ uses : ./.github/workflows/run_ruff.yml
1416
1517 test :
18+ needs : [run_ruff]
1619 strategy :
1720 fail-fast : false
1821 matrix :
@@ -25,15 +28,29 @@ jobs:
2528 runs-on : ${{ matrix.os }}
2629
2730 steps :
31+ - uses : actions/checkout@v4
32+ with :
33+ submodules : true
2834 - name : Set up Python version ${{ matrix.version }}
2935 uses : actions/setup-python@v4
3036 with :
3137 python-version : ${{ matrix.version }}
32- - name : Set up MATLAB
33- uses : matlab-actions/setup-matlab@v2
34- with :
35- release : R2024a
36- - name : Install
38+ - name : Install OMP (MacOS)
39+ if : runner.os == 'macOS'
40+ run : |
41+ brew install llvm libomp
42+ echo "export CC=/usr/local/opt/llvm/bin/clang" >> ~/.bashrc
43+ echo "export CXX=/usr/local/opt/llvm/bin/clang++" >> ~/.bashrc
44+ echo "export CFLAGS=\"$CFLAGS -I/usr/local/opt/libomp/include\"" >> ~/.bashrc
45+ echo "export CXXFLAGS=\"$CXXFLAGS -I/usr/local/opt/libomp/include\"" >> ~/.bashrc
46+ echo "export LDFLAGS=\"$LDFLAGS -Wl,-rpath,/usr/local/opt/libomp/lib -L/usr/local/opt/libomp/lib -lomp\"" >> ~/.bashrc
47+ source ~/.bashrc
48+ - name : Install OMP (Linux)
49+ if : runner.os == 'Linux'
50+ run : |
51+ sudo apt-get update
52+ sudo apt install libomp-dev
53+ - name : Install and Test with pytest
3754 run : |
3855 export PATH="$pythonLocation:$PATH"
3956 python -m pip install -e .[Dev,Orso]
0 commit comments