diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7dae365..6a3d983 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -11,7 +11,7 @@ concurrency: cancel-in-progress: true jobs: - unittests: + tests: name: Tests - Python ${{ matrix.python-version }} strategy: @@ -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}