Adds conversion between R1 .mat files and Python Project
s (#55)
#199
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.x"] | |
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 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: | | |
python -m pip install -e .[Dev] | |
pytest tests/ --cov=RATapi --cov-report=term |