Skip to content

Add lalsuite to mamba env #17

Add lalsuite to mamba env

Add lalsuite to mamba env #17

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: Tests - Python ${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure environment with Python ${{ matrix.python-version}}
uses: mamba-org/setup-micromamba@v1
with:
environment-name: bbhx-test
create-args: >-
python=${{ matrix.python-version }}
gcc_linux-64
gxx_linux-64
gsl
lapack=3.6.1
lalsuite
numpy
scipy
cython
ipython
matplotlib
pytest
pycbc
pip
cache-environment: true
post-cleanup: 'all'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Need current master branch of pycbc
pip install git+https://github.com/gwastro/pycbc.git
# Need older version of BBHx
pip install git+https://github.com/mikekatz04/BBHx.git@dd4c1f5b5a180ca10e699bd0317238be7480f28b
pip install .
shell: micromamba-shell {0}
- name: Test with pytest
run: |
python -m pytest -v tests.py
shell: micromamba-shell {0}