90 lines (74 loc) · 2.94 KB
/
test_suite.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
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
name: CI
on: [push]
jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Install anaconda
run: |
wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh;
bash ~/miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda install nomkl numpy scipy matplotlib
conda install -c conda-forge pybind11 autograd celerite
pip install corner
- name: Install kima and pykima
run: |
export PATH="$HOME/miniconda/bin:$PATH"
make -j 4
python setup.py install
- name: Run 51Peg example
run: |
export PATH="$HOME/miniconda/bin:$PATH"
cd tests/test_suite
cp OPTIONS ../../examples/51Peg/OPTIONS
kima-run ../../examples/51Peg -s 43
# test the output
echo "Comparing output to known output for seed"
cmp 51Peg_sample_seed43.txt ../../examples/51Peg/sample.txt
- name: Run CoRoT7 example
run: |
export PATH="$HOME/miniconda/bin:$PATH"
cd tests/test_suite
cp OPTIONS ../../examples/CoRoT7/OPTIONS
kima-run ../../examples/CoRoT7 -s 43
# test the output
echo "Comparing output to known output for seed"
cmp CoRoT7_sample_seed43.txt ../../examples/CoRoT7/sample.txt
- name: Run BL2009 example
run: |
export PATH="$HOME/miniconda/bin:$PATH"
cd tests/test_suite
cp OPTIONS ../../examples/BL2009/OPTIONS
kima-run ../../examples/BL2009 -s 43
# test the output
echo "Comparing output to known output for seed"
cmp BL2009_sample_seed43.txt ../../examples/BL2009/sample.txt
- name: Run multi_instrument example
run: |
export PATH="$HOME/miniconda/bin:$PATH"
cd tests/test_suite
cp OPTIONS ../../examples/multi_instrument/OPTIONS
kima-run ../../examples/multi_instrument -s 43
# test the output
echo "Comparing output to known output for seed"
cmp multi_instrument_sample_seed43.txt ../../examples/multi_instrument/sample.txt
- name: Run studentT example
run: |
export PATH="$HOME/miniconda/bin:$PATH"
cd tests/test_suite
cp OPTIONS ../../examples/studentT/OPTIONS
kima-run ../../examples/studentT -s 43
# test the output
echo "Comparing output to known output for seed"
cmp studentT_sample_seed43.txt ../../examples/studentT/sample.txt