add teobresums example #1028
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: build | |
on: | |
schedule: | |
- cron: "0 12 * * 1" | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
if: "!contains(github.event.head_commit.message, 'ci skip')" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
max-parallel: 4 | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
python-version: ['3.9'] | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'true' | |
- name: Set up miniconda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: "latest" | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
shell: bash -l {0} | |
run: | | |
pip install pytest nbconvert ipykernel | |
- name: Install Teobresums-Dali | |
shell: bash -l {0} | |
run: | | |
git clone https://bitbucket.org/eob_ihes/teobresums.git | |
cd teobresums/Python | |
git checkout dev/DALI | |
python setup.py build_ext --inplace | |
- name: Install fftw for macos | |
if: matrix.os == 'macos-latest' | |
run: | | |
brew install fftw | |
CFLAGS=" -L/opt/homebrew/lib " python -m pip install spinsfast | |
- name: Install pipenv | |
shell: bash -l {0} | |
run: | | |
pip install . | |
- name: Run test suite | |
shell: bash -l {0} | |
run: | | |
py.test test |