Skip to content

Updates backgrounds and resolutions in line with the MATLAB #306

Updates backgrounds and resolutions in line with the MATLAB

Updates backgrounds and resolutions in line with the MATLAB #306

Workflow file for this run

name: Run Unit Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
run_ruff:
uses: ./.github/workflows/run_ruff.yml
test:
needs: [run_ruff]
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
version: ["3.9", "3.13"]
defaults:
run:
shell: bash -l {0}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python version ${{ matrix.version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.version }}
- name: Install OMP (MacOS)
if: runner.os == 'macOS'
run: |
brew install llvm libomp
echo "export CC=/usr/local/opt/llvm/bin/clang" >> ~/.bashrc
echo "export CXX=/usr/local/opt/llvm/bin/clang++" >> ~/.bashrc
echo "export CFLAGS=\"$CFLAGS -I/usr/local/opt/libomp/include\"" >> ~/.bashrc
echo "export CXXFLAGS=\"$CXXFLAGS -I/usr/local/opt/libomp/include\"" >> ~/.bashrc
echo "export LDFLAGS=\"$LDFLAGS -Wl,-rpath,/usr/local/opt/libomp/lib -L/usr/local/opt/libomp/lib -lomp\"" >> ~/.bashrc
source ~/.bashrc
- name: Install OMP (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt install libomp-dev
- name: Install and Test with pytest
run: |
export PATH="$pythonLocation:$PATH"
python -m pip install -e .[Dev]
pytest tests/ --cov=RATapi --cov-report=term