0.8.2 #433
Workflow file for this run
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
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: MacOS Tests | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
test-macos: | |
defaults: | |
run: | |
shell: bash -el {0} | |
name: Test CyRK on MacOS | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
python-version: | |
- "3.8" | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: cyrk_test | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
auto-activate-base: false | |
- name: Conda info | |
shell: bash -el {0} | |
run: conda info | |
- name: install libomp | |
shell: bash -el {0} | |
run: | | |
brew reinstall llvm libomp | |
- name: Install Dependencies | |
shell: bash -el {0} | |
run: | | |
conda install numpy scipy cython llvm-openmp pytest | |
- name: Install package | |
shell: bash -el {0} | |
run: | | |
export CC=/usr/bin/clang | |
export CXX=/usr/bin/clang++ | |
export PATH="/usr/local/opt/llvm/bin:$PATH" | |
export CPPFLAGS="$CPPFLAGS -Xpreprocessor -fopenmp -I/usr/local/opt/llvm/include" | |
export CFLAGS="$CFLAGS -I/usr/local/opt/libomp/include" | |
export CXXFLAGS="$CXXFLAGS -I/usr/local/opt/libomp/include" | |
export LDFLAGS="$LDFLAGS -Wl,-rpath,/usr/local/opt/libomp/lib -L/usr/local/opt/libomp/lib -lomp -L/usr/local/opt/llvm/lib" | |
python -m pip install . -v | |
- name: Run pytest | |
shell: bash -el {0} | |
run: pytest --capture=sys -v Tests/ |