Skip to content

Commit f042eb3

Browse files
committed
Install: Remove env configure step from mhkit.install actions
1 parent da6d0e8 commit f042eb3

2 files changed

Lines changed: 24 additions & 84 deletions

File tree

.github/workflows/unix_unit_tests_mhkit_install.yml

Lines changed: 12 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.github/workflows/windows_unit_tests_mhkit_install.yml

Lines changed: 12 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -41,30 +41,15 @@ jobs:
4141
mhkit.install();
4242
startup-options: -noFigureWindows
4343

44-
- name: Configure MATLAB Python Environment for Health Check
45-
shell: bash -l {0}
46-
run: |
47-
# Get Python executable from mhkit-matlab-env
48-
PYTHON_PATH=$(conda run -n mhkit-matlab-env python -c "import sys; print(sys.executable)")
49-
echo "Python path: $PYTHON_PATH"
50-
51-
# Create health check script with Python configuration
52-
cat > health_check.m << EOF
53-
addpath(genpath('mhkit'));
54-
pyenv(Version='$PYTHON_PATH', ExecutionMode='OutOfProcess');
55-
success = mhkit.check_health();
56-
if ~success
57-
error('MHKiT health check failed - installation has issues');
58-
end
59-
EOF
60-
61-
echo "Health check script content:"
62-
cat health_check.m
63-
6444
- name: Validate Installation Health
6545
uses: matlab-actions/run-command@v2
6646
with:
67-
command: health_check
47+
command: |
48+
addpath(genpath('mhkit'));
49+
success = mhkit.check_health();
50+
if ~success
51+
error('MHKiT health check failed - installation has issues');
52+
end
6853
startup-options: -noFigureWindows
6954

7055
- name: Add MATLAB test commands
@@ -155,30 +140,15 @@ jobs:
155140
mhkit.install();
156141
startup-options: -noFigureWindows
157142

158-
- name: Configure MATLAB Python Environment for Health Check
159-
shell: bash -l {0}
160-
run: |
161-
# Get Python executable from mhkit-matlab-env
162-
PYTHON_PATH=$(conda run -n mhkit-matlab-env python -c "import sys; print(sys.executable)")
163-
echo "Python path: $PYTHON_PATH"
164-
165-
# Create health check script with Python configuration
166-
cat > health_check.m << EOF
167-
addpath(genpath('mhkit'));
168-
pyenv(Version='$PYTHON_PATH', ExecutionMode='OutOfProcess');
169-
success = mhkit.check_health();
170-
if ~success
171-
error('MHKiT health check failed - installation has issues');
172-
end
173-
EOF
174-
175-
echo "Health check script content:"
176-
cat health_check.m
177-
178143
- name: Validate Installation Health
179144
uses: matlab-actions/run-command@v2
180145
with:
181-
command: health_check
146+
command: |
147+
addpath(genpath('mhkit'));
148+
success = mhkit.check_health();
149+
if ~success
150+
error('MHKiT health check failed - installation has issues');
151+
end
182152
startup-options: -noFigureWindows
183153

184154
- name: Add MATLAB test commands

0 commit comments

Comments
 (0)