@@ -43,30 +43,15 @@ jobs:
4343 mhkit.install();
4444 startup-options : -noFigureWindows
4545
46- - name : Configure MATLAB Python Environment for Health Check
47- shell : bash -l {0}
48- run : |
49- # Get Python executable from mhkit-matlab-env
50- PYTHON_PATH=$(conda run -n mhkit-matlab-env python -c "import sys; print(sys.executable)")
51- echo "Python path: $PYTHON_PATH"
52-
53- # Create health check script with Python configuration
54- cat > health_check.m << EOF
55- addpath(genpath('mhkit'));
56- pyenv(Version='$PYTHON_PATH', ExecutionMode='OutOfProcess');
57- success = mhkit.check_health();
58- if ~success
59- error('MHKiT health check failed - installation has issues');
60- end
61- EOF
62-
63- echo "Health check script content:"
64- cat health_check.m
65-
6646 - name : Validate Installation Health
6747 uses : matlab-actions/run-command@v2
6848 with :
69- command : health_check
49+ command : |
50+ addpath(genpath('mhkit'));
51+ success = mhkit.check_health();
52+ if ~success
53+ error('MHKiT health check failed - installation has issues');
54+ end
7055 startup-options : -noFigureWindows
7156
7257 - name : Add MATLAB test commands
@@ -168,30 +153,15 @@ jobs:
168153 mhkit.install();
169154 startup-options : -noFigureWindows
170155
171- - name : Configure MATLAB Python Environment for Health Check
172- shell : bash -l {0}
173- run : |
174- # Get Python executable from mhkit-matlab-env
175- PYTHON_PATH=$(conda run -n mhkit-matlab-env python -c "import sys; print(sys.executable)")
176- echo "Python path: $PYTHON_PATH"
177-
178- # Create health check script with Python configuration
179- cat > health_check.m << EOF
180- addpath(genpath('mhkit'));
181- pyenv(Version='$PYTHON_PATH', ExecutionMode='OutOfProcess');
182- success = mhkit.check_health();
183- if ~success
184- error('MHKiT health check failed - installation has issues');
185- end
186- EOF
187-
188- echo "Health check script content:"
189- cat health_check.m
190-
191156 - name : Validate Installation Health
192157 uses : matlab-actions/run-command@v2
193158 with :
194- command : health_check
159+ command : |
160+ addpath(genpath('mhkit'));
161+ success = mhkit.check_health();
162+ if ~success
163+ error('MHKiT health check failed - installation has issues');
164+ end
195165 startup-options : -noFigureWindows
196166
197167 - name : Add MATLAB test commands
0 commit comments