Moves documentation to GH pages #161
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: MacOS | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
schedule: | |
# Weely tests run on Sundays at 4 AM UTC (12 AM EST): | |
- cron: "0 4 * * 0" | |
jobs: | |
unix: | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.name }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: MacOS (Python 3.9) | |
os: macos-11 | |
cuda-version: "" | |
gcc-version: "" | |
nvcc-version: "" | |
python-version: "3.9" | |
steps: | |
- name: "Check out" | |
uses: actions/checkout@v3 | |
- name: "Install SDK on MacOS" | |
run: source devtools/scripts/install_macos_sdk.sh | |
- name: "Update the conda enviroment file" | |
uses: cschleiden/replace-tokens@v1 | |
with: | |
tokenPrefix: '@' | |
tokenSuffix: '@' | |
files: devtools/conda-envs/build-${{ matrix.os }}.yml | |
env: | |
CUDATOOLKIT_VERSION: ${{ matrix.cuda-version }} | |
GCC_VERSION: ${{ matrix.gcc-version }} | |
NVCC_VERSION: ${{ matrix.nvcc-version }} | |
- uses: conda-incubator/setup-miniconda@v2 | |
name: "Install dependencies with conda" | |
with: | |
activate-environment: build | |
environment-file: devtools/conda-envs/build-${{ matrix.os }}.yml | |
python-version: ${{ matrix.python-version }} | |
- name: "List conda packages" | |
shell: bash -l {0} | |
run: conda list | |
- name: "Configure" | |
shell: bash -l {0} | |
run: | | |
mkdir build | |
cd build | |
cmake .. \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DPLUGIN_BUILD_CUDA_LIB=OFF | |
- name: "Build" | |
shell: bash -l {0} | |
run: | | |
cd build | |
make -j2 install | |
make -j2 PythonInstall | |
- name: "List plugins" | |
shell: bash -l {0} | |
run: | | |
python -c "import openmm as mm; print('---Loaded---', *mm.pluginLoadedLibNames, '---Failed---', *mm.Platform.getPluginLoadFailures(), sep='\n')" | |
- name: "Run C++ test" | |
shell: bash -l {0} | |
run: | | |
cd build | |
ctest --output-on-failure --exclude-regex 'Test[Cuda|OpenCL]' | |
- name: "Run Python test" | |
shell: bash -l {0} | |
run: | | |
cd build/python/tests | |
pytest --verbose -k 'not (Cuda or OpenCL)' Test* |