Skip to content

Merge branch 'master' of github.com:fedluc/qupled #7

Merge branch 'master' of github.com:fedluc/qupled

Merge branch 'master' of github.com:fedluc/qupled #7

name: Build & Test (macOS-MPI)
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
PYTHON_VENV_ROOT: ${{ github.workspace }}/python-venv
jobs:
build_and_test:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install dependencies
run: |
brew update
brew install cmake gsl libomp openmpi fmt boost-python3
python3 -m venv ${PYTHON_VENV_ROOT}
source ${PYTHON_VENV_ROOT}/bin/activate
pip3 install --upgrade pip
pip3 install -r python/requirements.txt
- name: Configure CMake
run: |
export OpenMP_ROOT=$(brew --prefix)/opt/libomp
cmake -Bbuild -H. -DCMAKE_BUILD_TYPE=Release
- name: Build
run: |
cmake --build build --config Release
- name: Tests
run: |
source ${PYTHON_VENV_ROOT}/bin/activate
cd build
pytest -k "not test_examples" tests