Skip to content

Commit 242f2a2

Browse files
committed
Actions: Use out of process for rex/h5py on Windows
1 parent 1f7be40 commit 242f2a2

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/windows_unit_tests.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,18 +129,22 @@ jobs:
129129
130130
python_exe = sys.executable.replace('\\\\', '/')
131131
132-
content = f'''pyenv(Version='{python_exe}', ExecutionMode='InProcess')
132+
content = f'''pyenv(Version='{python_exe}', ExecutionMode='OutOfProcess')
133133
% Verify Python environment
134134
pe = pyenv;
135135
disp(pe);
136-
% Warm up numpy
136+
% Warm up numpy - must call function to force resolution
137137
py.importlib.import_module('numpy');
138138
dummy = py.numpy.array([1,2,3]);
139+
disp(class(dummy));
139140
clear dummy;
140141
disp('py.numpy.array: resolved');
141-
% Warm up mhkit
142+
% Warm up mhkit submodules - force resolution by calling functions
142143
py.importlib.import_module('mhkit');
143-
disp('mhkit: resolved');
144+
py.importlib.import_module('mhkit.wave.io.ndbc');
145+
py.importlib.import_module('mhkit.wave.io.swan');
146+
py.importlib.import_module('mhkit.river.resource');
147+
disp('mhkit submodules: imported');
144148
version
145149
pyenv
146150
addpath(genpath('mhkit'))

0 commit comments

Comments
 (0)