From 11f5c4f51bf653f2701884719572edc3a09e8fbe Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Sun, 23 Feb 2025 22:48:18 -0500 Subject: [PATCH] [ci] add zmat, fix iso2mesh path --- .github/workflows/run_test.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/run_test.yml b/.github/workflows/run_test.yml index f016612..d3e777b 100644 --- a/.github/workflows/run_test.yml +++ b/.github/workflows/run_test.yml @@ -33,15 +33,14 @@ jobs: - name: Setup iso2mesh run: | curl --retry 3 -kL https://github.com/fangq/iso2mesh/archive/refs/heads/master.zip -o master.zip - unzip master.zip + unzip master.zip && rm -rf master.zip + curl --retry 3 -kL https://github.com/NeuroJSON/zmat/archive/refs/heads/master.zip -o master.zip + unzip master.zip && rm -rf master.zip - name: Run octave test run: | - pwd - ls -lt - ls iso2mesh-master octave-cli --version - octave-cli --eval "disp(pwd); disp(ls); addpath([pwd filesep 'iso2mesh-master']); addpath(pwd); cd examples; SPM_example_brain" - octave-cli --eval "addpath([pwd filesep 'iso2mesh-master']); addpath(pwd); cd examples; SPM_example_wholehead" + octave-cli --eval "addpath(pwd, [pwd filesep 'iso2mesh-master'], [pwd filesep 'zmat-master']); cd examples; SPM_example_brain" + octave-cli --eval "addpath(pwd, [pwd filesep 'iso2mesh-master'], [pwd filesep 'zmat-master']); cd examples; SPM_example_wholehead" matlab_test: name: MATLAB test @@ -61,15 +60,14 @@ jobs: - name: Setup iso2mesh run: | curl --retry 3 -kL https://github.com/fangq/iso2mesh/archive/refs/heads/master.zip -o master.zip - unzip master.zip - pwd - ls - ls iso2mesh-master + unzip master.zip && rm -rf master.zip + curl --retry 3 -kL https://github.com/NeuroJSON/zmat/archive/refs/heads/master.zip -o master.zip + unzip master.zip && rm -rf master.zip - name: Run MATLAB brain example uses: matlab-actions/run-command@v1 with: - command: addpath([pwd filesep 'iso2mesh-master']); addpath(pwd); cd examples; SPM_example_brain + command: addpath(pwd, [pwd filesep 'iso2mesh-master'], [pwd filesep 'zmat-master']); cd examples; SPM_example_brain - name: Run MATLAB wholehead example uses: matlab-actions/run-command@v1 with: - command: addpath([pwd filesep 'iso2mesh-master']); addpath(pwd); cd examples; SPM_example_wholehead + command: addpath(pwd, [pwd filesep 'iso2mesh-master'], [pwd filesep 'zmat-master']); cd examples; SPM_example_wholehead