-
Notifications
You must be signed in to change notification settings - Fork 138
222 lines (179 loc) · 7.32 KB
/
matlab.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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# This is a basic workflow to help you get started with MATLAB Actions
name: Complete integration test
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
workflow_dispatch:
jobs:
job1:
name: Complete integration (basics)
runs-on: ubuntu-latest
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
steps:
- uses: actions/checkout@v2
- name: Checkout tools repo
uses: actions/checkout@v3
with:
repository: sqlp/sedumi
path: sedumi
- name: Confirm
run: ls -l
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v0
with:
release: R2024a
- name: Build SeDuMi
uses: matlab-actions/run-command@v2
with:
command: "cd('sedumi');install_sedumi -rebuild:"
- name: Test core
uses: matlab-actions/run-command@v0
with:
command: addpath(genpath(pwd));warning off; results = runxunittests('dev/tests/core'); assertSuccess(results);
- name: Test operators
if: success() || failure()
uses: matlab-actions/run-command@v0
with:
command: addpath(genpath(pwd));warning off; results = runxunittests('dev/tests/operators'); assertSuccess(results);
- name: Test misc
if: success() || failure()
uses: matlab-actions/run-command@v0
with:
command: addpath(genpath(pwd));warning off; results = runxunittests('dev/tests/misc'); assertSuccess(results);
- name: Test Report
uses: dorny/[email protected]
if: success() || failure() # run this step even if previous step failed
with:
name: Report (basics) # Name of the check run which will be created
path: '*.xml' # Path to test results
reporter: java-junit # Format of test results
fail-on-error: 'false'
job2:
name: Complete integration (modules)
runs-on: ubuntu-latest
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
steps:
- uses: actions/checkout@v2
- name: Checkout tools repo
uses: actions/checkout@v3
with:
repository: sqlp/sedumi
path: sedumi
- name: Confirm
run: ls -l
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v0
with:
release: R2024a
- name: Build SeDuMi
uses: matlab-actions/run-command@v2
with:
command: "cd('sedumi');install_sedumi -rebuild:"
- name: Test optimizer module
if: success() || failure()
uses: matlab-actions/run-command@v0
with:
command: addpath(genpath(pwd));warning off; results = runxunittests('dev/tests/optimizer'); assertSuccess(results);
- name: Test robust optimization module
if: success() || failure()
uses: matlab-actions/run-command@v0
with:
command: addpath(genpath(pwd));warning off; results = runxunittests('dev/tests/robust'); assertSuccess(results);
- name: Test dualize
if: success() || failure()
uses: matlab-actions/run-command@v0
with:
command: addpath(genpath(pwd));warning off; results = runxunittests('dev/tests/dualize'); assertSuccess(results);
- name: Test geometric programming layer
if: success() || failure()
uses: matlab-actions/run-command@v0
with:
command: addpath(genpath(pwd));warning off; results = runxunittests('dev/tests/geometric'); assertSuccess(results);
- name: Test sum-of-squares module
if: success() || failure()
uses: matlab-actions/run-command@v0
with:
command: addpath(genpath(pwd));warning off; results = runxunittests('dev/tests/sos'); assertSuccess(results);
- name: Test moment relaxations module
if: success() || failure()
uses: matlab-actions/run-command@v0
with:
command: addpath(genpath(pwd));warning off; results = runxunittests('dev/tests/moment'); assertSuccess(results);
- name: Test Report
uses: dorny/[email protected]
if: success() || failure() # run this step even if previous step failed
with:
name: Report (modules) # Name of the check run which will be created
path: '*.xml' # Path to test results
reporter: java-junit # Format of test results
fail-on-error: 'false'
job3:
name: Complete integration (solvers)
runs-on: ubuntu-latest
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
steps:
- uses: actions/checkout@v2
- name: Checkout tools repo
uses: actions/checkout@v3
with:
repository: sqlp/sedumi
path: sedumi
- name: Confirm
run: ls -l
- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v0
with:
release: R2024a
- name: Build SeDuMi
uses: matlab-actions/run-command@v2
with:
command: "cd('sedumi');install_sedumi -rebuild:"
- name: Test BNB solver
if: success() || failure()
uses: matlab-actions/run-command@v0
with:
command: addpath(genpath(pwd));warning off; results = runxunittests('dev/tests/bnb'); assertSuccess(results);
- name: Test BMIBNB solver
if: success() || failure()
uses: matlab-actions/run-command@v0
with:
command: addpath(genpath(pwd));warning off; results = runxunittests('dev/tests/bmibnb'); assertSuccess(results);
- name: Test BILEVEL solver
if: success() || failure()
uses: matlab-actions/run-command@v0
with:
command: addpath(genpath(pwd));warning off; results = runxunittests('dev/tests/bilevel'); assertSuccess(results);
- name: Test CUTSDP solver
if: success() || failure()
uses: matlab-actions/run-command@v0
with:
command: addpath(genpath(pwd));warning off; results = runxunittests('dev/tests/cutsdp'); assertSuccess(results);
- name: Test SLAYER solver
if: success() || failure()
uses: matlab-actions/run-command@v0
with:
command: addpath(genpath(pwd));warning off; results = runxunittests('dev/tests/slayer'); assertSuccess(results);
- name: Test Report
uses: dorny/[email protected]
if: success() || failure() # run this step even if previous step failed
with:
name: Report (solvers) # Name of the check run which will be created
path: '*.xml' # Path to test results
reporter: java-junit # Format of test results
fail-on-error: 'false'