Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #10

Merged
merged 9 commits into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 25 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ concurrency:
cancel-in-progress: true

jobs:
unittests:
tests:
name: Tests - Python ${{ matrix.python-version }}

strategy:
Expand All @@ -22,17 +22,36 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- name: Configure environment with Python ${{ matrix.python-version}}
uses: mamba-org/setup-micromamba@v1
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
environment-name: bbhx-test
create-args: >-
python=${{ matrix.python-version }}
gcc_linux-64
gxx_linux-64
gsl
lapack=3.6.1
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 .
pip install pytest
shell: micromamba-shell {0}
- name: Test with pytest
run: |
python -m pytest -v tests.py
shell: micromamba-shell {0}