Skip to content

Adds options to plot_ref_sld #257

Adds options to plot_ref_sld

Adds options to plot_ref_sld #257

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.12"]
run:

Check failure on line 24 in .github/workflows/run_tests.yml

View workflow run for this annotation

GitHub Actions / Run Unit Tests

Invalid workflow file

The workflow is not valid. .github/workflows/run_tests.yml (Line: 24, Col: 7): Unexpected value '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: |
python -m pip install -e .[Dev]
pytest tests/ --cov=RATapi --cov-report=term