Repository navigation
100 lines (97 loc) · 3.31 KB
/
Copy pathbasic-tests.yml
File metadata and controls
100 lines (97 loc) · 3.31 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: basic tests
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 60
matrix:
os: [ubuntu-24.04]
python-version: ['3.11', '3.12', '3.13']
test-type: [unittest, search, docs]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: installing system packages
run: |
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get -o Acquire::Retries=3 install *fftw3* mpi intel-mkl* graphviz
pip install tox pip setuptools --upgrade
- name: Cache LAL auxiliary data files
id: cache-lal-aux-data
uses: actions/cache@v4
with:
key: lal-aux-data
path: ~/lal_aux_data
- if: ${{ steps.cache-lal-aux-data.outputs.cache-hit != 'true' }}
name: Download LAL auxiliary data files
run: |
mkdir ~/lal_aux_data
pushd ~/lal_aux_data
curl --show-error --silent \
--remote-name https://zenodo.org/records/14999310/files/SEOBNRv4ROM_v2.0.hdf5 \
--remote-name https://zenodo.org/records/14999310/files/SEOBNRv4ROM_v3.0.hdf5
popd
- name: Cache example GW data
id: cache-example-gw-data
uses: actions/cache@v4
with:
key: example-gw-data
path: |
docs/_include/*_TDI_v2.gwf
docs/_include/*_GWOSC_4KHZ_R1-1126257415-4096.gwf
docs/_include/*_LOSC_CLN_4_V1-1187007040-2048.gwf
examples/inference/lisa_smbhb_ldc/*_psd.txt
examples/inference/lisa_smbhb_ldc/*_TDI_v2.gwf
examples/inference/lisa_smbhb_ldc/MBHB_params_v2_LISA_frame.pkl
examples/inference/margtime/*.gwf
examples/inference/multisignal/*.gwf
examples/inference/relative/*.gwf
examples/inference/relmarg/*.gwf
examples/inference/single/*.gwf
- name: run pycbc test suite
run: |
export LAL_DATA_PATH=$HOME/lal_aux_data
tox -e py-${{matrix.test-type}}
- name: check help messages work
if: matrix.test-type == 'unittest'
run: |
export LAL_DATA_PATH=$HOME/lal_aux_data
tox -e py-help
- name: run inference tests
if: matrix.test-type == 'search'
run: |
export LAL_DATA_PATH=$HOME/lal_aux_data
tox -e py-inference
- name: store documentation page
if: matrix.test-type == 'docs' && matrix.python-version == '3.12'
uses: actions/upload-artifact@v4
with:
name: documentation-page
path: _gh-pages
deploy_documentation:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
steps:
- name: retrieve built documentation
uses: actions/download-artifact@v4.1.7
with:
name: documentation-page
- name: debug
run: |
mkdir _gh-pages
mv latest _gh-pages
- name: deploying to gh-pages
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: _gh-pages
SINGLE_COMMIT: true