Skip to content

MAINT: move KnownReparameterisation and ReparameterisationDict #1444

MAINT: move KnownReparameterisation and ReparameterisationDict

MAINT: move KnownReparameterisation and ReparameterisationDict #1444

name: Compatibility tests
on:
push:
branches: [ main, release* ]
pull_request:
branches: [ main, release* ]
schedule:
# Run tests at 7:00 UTC everyday
- cron: '0 7 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
bilby-test:
name: Bilby compatibility test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11' # Based on bilby
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Install CPU-only version of PyTorch
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install -e .[test]
pip install bilby
- name: Run bilby compatibility tests (without plugin)
run: |
python -m pytest --bilby-compatibility -m "bilby_compatibility"
- name: Install bilby plugin
run: |
pip install nessai-bilby
- name: Run bilby compatibility tests (with plugin)
run: |
python -m pytest --bilby-compatibility -m "bilby_compatibility"