-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (62 loc) · 1.94 KB
/
test_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
# ----- IBCDFO FULL TESTING OF LOCAL CLONE WITHOUT COVERAGE
name: Test IBCDFO MATLAB Code
env:
BENDFO_M_PATH: ${{ github.workspace }}/BenDFO/m
BENDFO_DATA_PATH: ${{ github.workspace }}/BenDFO/data
POUNDERS_PATH: ${{ github.workspace }}/IBCDFO/pounders/m
MSAMP_PATH: ${{ github.workspace }}/IBCDFO/manifold_sampling/m
on:
push:
branches:
- main
pull_request:
branches:
- main
- develop
jobs:
test_ibcdfo:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-15]
matlab-release: ["R2022a", "R2022b", "R2023a", "R2023b", "R2024a", "R2024b"]
exclude:
# Failing with a possible issue outside IBCDFO (Issue #157)
- os: macos-14
matlab-release: "R2023b"
steps:
# -- General Setup Steps
- name: Checkout IBCDFO repository
uses: actions/checkout@v4
with:
path: IBCDFO
submodules: recursive
- name: Checkout BenDFO repository
uses: actions/checkout@v4
with:
repository: POptUS/BenDFO
path: BenDFO
- name: Set up MATLAB ${{ matrix.matlab-release }}
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.matlab-release }}
products: Optimization_Toolbox
# -- Test Execution Step
- name: Test POUNDERS
uses: matlab-actions/run-command@v2
with:
command: >
addpath("${{ env.BENDFO_M_PATH }}"),
addpath("${{ env.BENDFO_DATA_PATH }}"),
cd ${{ env.POUNDERS_PATH }},
results = runtests("IncludeSubfolders", true),
assertSuccess(results);
- name: Test Manifold Sampling
uses: matlab-actions/run-command@v2
with:
command: >
addpath("${{ env.BENDFO_M_PATH }}"),
addpath("${{ env.BENDFO_DATA_PATH }}"),
cd ${{ env.MSAMP_PATH }},
results = runtests("IncludeSubfolders", true),
assertSuccess(results),