-
Notifications
You must be signed in to change notification settings - Fork 1
160 lines (157 loc) · 5.47 KB
/
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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
name: test
on: [push, pull_request]
jobs:
test_commands:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install
run: |
sudo apt-get -y update && sudo apt-get -y install lsb-release
lsb_release -irc
echo "Installing vfgen"
sudo apt-get -y install cmake libmxml-dev libginac-dev
cd cmake_build
cmake ../src
make
make install
cd ..
- name: test_adolc
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test adolc]')"
run: |
cd tests/test_adolc
sudo bash install_adolc.sh
bash run_test.sh
cd ../..
- name: test_boostodeint
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test boostodeint]')"
run: |
sudo apt-get -y install libboost-math-dev
cd tests/test_boostodeint
bash run_test_boostodeint_default_noparams.sh
bash run_test_boostodeint_default_params.sh
bash run_test_boostodeint_implicit_noparams.sh
bash run_test_boostodeint_implicit_params.sh
cd ../..
- name: test_cvode7
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test cvode7]')"
run: |
cd tests/test_cvode7
bash install_cvode7.sh
bash run_test.sh
cd ../..
- name: test_dde_solver
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test dde_solver]')"
run: |
cd tests/test_dde_solver
bash run_test.sh
cd ../..
- name: test_evf
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test evf]')"
run: |
cd tests/test_evf
sudo bash install_gsl.sh
bash run_test.sh
cd ../..
- name: test_gsl
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test gsl]')"
run: |
cd tests/test_gsl
sudo bash install_gsl.sh
bash run_test.sh
cd ../..
- name: test_help
run: |
vfgen help help
- name: test_julia
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test julia]')"
run: |
cd tests/test_julia
bash install_julia.sh
bash run_test.sh
cd ../..
- name: test_lsoda
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test lsoda]')"
run: |
cd tests/test_lsoda
bash download_lsoda.sh
bash run_test_linearosc.sh
bash run_test_pidecay.sh
cd ../..
- name: test_matlab
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test matlab]')"
run: |
cd tests/test_matlab
sudo bash install_octave.sh
bash run_test.sh
cd ../..
- name: test_octave
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test octave]')"
run: |
cd tests/test_octave
sudo bash run_test.sh
cd ../..
- name: test_pygsl
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test pygsl]')"
run: |
cd tests/test_pygsl
sudo bash run_test.sh
cd ../..
- name: test_radau5
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test radau5]')"
run: |
cd tests/test_radau5
bash run_test.sh
cd ../..
- name: test_scilab
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test scilab]')"
run: |
cd tests/test_scilab
sudo bash install_scilab.sh
bash run_test.sh
cd ..
- name: test_scipy
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test scipy]')"
run: |
cd tests/test_scipy
sudo bash install_scipy.sh
bash run_test.sh
cd ..
- name: setup_r
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test r]')"
uses: r-lib/actions/setup-r@v2
- name: test_r
if: "contains(github.event.head_commit.message, '[test all]') || contains(github.event.head_commit.message, '[test r]')"
run: |
cd tests/test_r
bash run_test.sh
cd ../..
build_on_macos_latest:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: install
run: |
echo "Installing ginac with brew"
brew install ginac
#
echo "Installing mini-xml 3.3.1 from tarball"
mkdir install-mxml
cd install-mxml
curl -L -s -S -O https://github.com/michaelrsweet/mxml/releases/download/v3.3.1/mxml-3.3.1.tar.gz
tar xf mxml-3.3.1.tar.gz
cd mxml-3.3.1
./configure
make
sudo make install
cd ../..
#
echo "Installing vfgen"
cd cmake_build
cmake ../src
make
sudo make install
cd ..
- name: test_help
run: |
vfgen help help