Skip to content

Commit

Permalink
[ci] add zmat, fix iso2mesh path
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Feb 24, 2025
1 parent 2c0cb1e commit 11f5c4f
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/run_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 11f5c4f

Please sign in to comment.