Skip to content

Commit 5e98bdf

Browse files
committed
ci: increase version coverage
1 parent bb7cf01 commit 5e98bdf

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,35 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
os: [ubuntu-latest, windows-latest, macos-latest]
18+
os: [ubuntu-latest]
19+
release: [R2020a, R2020b, R2021a, R2021b, R2022a, R2022b]
20+
include:
21+
- os: macos-latest
22+
release: R2022b
23+
- os: windows-latest
24+
release: R2022b
1925

2026
steps:
2127
- uses: actions/checkout@v3
2228

2329
- name: Install MATLAB
2430
uses: matlab-actions/setup-matlab@v1
2531
with:
26-
release: R2022b
32+
release: ${{ matrix.release }}
2733

28-
- name: Run tests
34+
- name: Run tests (buildtool)
35+
if: ${{ matrix.release == 'R2022b' }}
2936
timeout-minutes: 10
3037
uses: matlab-actions/run-command@v1
3138
with:
3239
command: buildtool
40+
41+
- name: Run tests (manual)
42+
if: ${{ matrix.release != 'R2022b' }}
43+
timeout-minutes: 10
44+
uses: matlab-actions/run-command@v1
45+
with:
46+
command: |
47+
r = runtests('stdlib.test', 'strict', true, 'UseParallel', true);
48+
assert(~isempty(r), "No tests were run")
49+
assertSuccess(r)

buildfile.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
function checkTask(~)
88
% Identify code issues (recursively all Matlab .m files)
99
issues = codeIssues;
10-
assert(isempty(issues.Issues),formattedDisplayText(issues.Issues))
10+
assert(isempty(issues.Issues), formattedDisplayText(issues.Issues))
1111
end
1212

1313
function testTask(~)
14-
assertSuccess(runtests('stdlib.test'))
14+
r = runtests('stdlib.test', 'strict', true, 'UseParallel', true);
15+
assert(~isempty(r), "No tests were run")
16+
assertSuccess(r)
1517
end

0 commit comments

Comments
 (0)