Skip to content

Commit bb5ae2d

Browse files
committed
ci: test R2020a-R2022b
1 parent cfd9ed1 commit bb5ae2d

2 files changed

Lines changed: 22 additions & 6 deletions

File tree

.archive/assert_allclose.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ function assert_allclose(actual, desired, equal_nan, err_msg,notclose,verbose, n
1616
%
1717
% if "actual" is within atol OR rtol of "desired", no error is emitted.
1818
arguments
19-
actual {mustBeNumeric,mustBeReal}
20-
desired {mustBeNumeric,mustBeReal}
19+
actual {mustBeReal}
20+
desired {mustBeReal}
2121
equal_nan (1,1) logical = false
2222
err_msg (1,1) string = ""
2323
notclose (1,1) logical = false
2424
verbose (1,1) logical = false
25-
namedargs.rtol (1,1) {mustBeNumeric,mustBeReal,mustBeNonnegative} = 1e-6
26-
namedargs.atol (1,1) {mustBeNumeric,mustBeReal,mustBeNonnegative} = 1e-9
25+
namedargs.rtol (1,1) {mustBeReal,mustBeNonnegative} = 1e-6
26+
namedargs.atol (1,1) {mustBeReal,mustBeNonnegative} = 1e-9
2727
end
2828

2929
%% compute

.github/workflows/ci.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,29 @@ jobs:
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 10
1515

16+
strategy:
17+
matrix:
18+
release: [R2020a, R2020b, R2021b, R2022b]
19+
1620
steps:
1721
- uses: actions/checkout@v3
1822

1923
- name: Install MATLAB
2024
uses: matlab-actions/setup-matlab@v1
2125
with:
22-
release: R2022b
26+
release: ${{ matrix.release }}
2327

24-
- name: Run tests
28+
- name: Run Matlab tests (buildtool)
29+
if: ${{ matrix.release == 'R2022b' }}
30+
timeout-minutes: 15
2531
uses: matlab-actions/run-build@v1
32+
33+
- name: Run tests (manual)
34+
if: ${{ matrix.release != 'R2022b' }}
35+
timeout-minutes: 15
36+
uses: matlab-actions/run-command@v1
37+
with:
38+
command: |
39+
r = runtests('matmap3d');
40+
assert(~isempty(r), "No tests were run")
41+
assertSuccess(r)

0 commit comments

Comments
 (0)