Skip to content

Commit 30cbadd

Browse files
committed
ci: separate workflow for very old matlab
1 parent 5661fdf commit 30cbadd

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

test/is_capable.m

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,11 @@ function is_capable(tc, f)
2626
tc.assumeGreaterThanOrEqual(japi, 11)
2727
end
2828

29-
elseif ~isMATLABReleaseOlderThan('R2022a') && contains(n, "python")
29+
elseif contains(n, "python")
3030

3131
tc.assumeTrue(stdlib.has_python())
3232

33-
try
34-
py.psutil.version_info();
35-
has_psutil = true;
36-
catch
37-
has_psutil = false;
38-
end
33+
has_psutil = pvt_psutil();
3934

4035
if contains(n, ["ram_free", "ram_total"])
4136
tc.assumeTrue(has_psutil, "need Python psutil package")

test/private/pvt_psutil.m

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
function y = pvt_psutil()
2+
3+
try
4+
py.psutil.version_info();
5+
y = true;
6+
catch
7+
y = false;
8+
end
9+
10+
end

0 commit comments

Comments
 (0)