Skip to content
Open
Show file tree
Hide file tree
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
144 changes: 0 additions & 144 deletions .github/workflows/build-containers.yml

This file was deleted.

34 changes: 14 additions & 20 deletions .github/workflows/latest-dynesty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,28 @@ env:
jobs:
build:

name: ${{ matrix.python.name }} latest dynesty
name: Latest dynesty
runs-on: ubuntu-latest
container: ghcr.io/bilby-dev/bilby-python${{ matrix.python.short-version }}:latest
strategy:
fail-fast: false
matrix:
python:
- name: Python 3.12
version: 3.12
short-version: 312

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Install package
run: |
# activate env so that conda list shows the correct environment
source $CONDA_PATH/bin/activate python${{ matrix.python.short-version }}
conda install -c conda-forge -y liblal!=7.7.0 python-lal!=7.7.0
python -m pip install .
python -m pip install git+https://github.com/joshspeagle/dynesty@master
conda list --show-channel-urls
shell: bash

- uses: prefix-dev/setup-pixi@v0.10.0
with:
environments: latest-dynesty
cache: true
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
locked: true

- name: Run unit tests
run: |
python -m pytest --durations 10 -k dynesty
pixi run -e latest-dynesty python -m pytest \
--durations 10 -k dynesty
- name: Run sampler tests
run: |
python -m pytest test/integration/sampler_run_test.py --durations 10 -v -k dynesty
pixi run -e latest-dynesty python -m pytest \
test/integration/sampler_run_test.py \
--durations 10 -v -k dynesty
25 changes: 13 additions & 12 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,27 @@ env:
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/bilby-dev/bilby-python312:latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: install
run: |
source $CONDA_PATH/bin/activate python312
conda install -c conda-forge -y liblal!=7.7.0 python-lal!=7.7.0
python -m pip install -r docs/requirements.txt
python -m pip install .
shell: bash

- uses: prefix-dev/setup-pixi@v0.10.0
with:
environments: documentation
cache: true
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
locked: true

- name: Run jupyter notebooks
run: |
python -m ipykernel install
cd examples/tutorials
jupyter nbconvert --to notebook --execute *.ipynb --output-dir ../../docs
cd -
pixi run -e documentation python -m ipykernel install --user
pixi run -e documentation jupyter nbconvert \
--to notebook \
--execute examples/tutorials/*.ipynb \
--output-dir ./docs
- name: Build docs
run: |
cd docs
Expand Down
Loading
Loading