Skip to content

Commit

Permalink
Merge pull request #10 from gwastro/fix-ci
Browse files Browse the repository at this point in the history
Fix CI
  • Loading branch information
WuShichao authored May 13, 2024
2 parents f981313 + fa426a0 commit de09073
Showing 1 changed file with 25 additions and 6 deletions.
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}

0 comments on commit de09073

Please sign in to comment.