-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (39 loc) · 1.16 KB
/
compatibility-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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"