From 5316f69cfbded99bb2a650e61ccf7959b80b2cb5 Mon Sep 17 00:00:00 2001 From: Qianqian Fang Date: Thu, 17 Oct 2024 22:36:31 -0400 Subject: [PATCH] [ci] fix fragile test --- .github/workflows/run_test.yml | 28 ++++++++++++++-------------- sample/demo_vol2mesh_ex1b.m | 2 +- tools/PoissonRecon | 2 +- tools/meshfix | 2 +- tools/tetgen | 2 +- 5 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/run_test.yml b/.github/workflows/run_test.yml index b19e65d..562e5ac 100644 --- a/.github/workflows/run_test.yml +++ b/.github/workflows/run_test.yml @@ -33,15 +33,15 @@ jobs: - name: Run octave test run: | octave-cli --version - octave-cli --eval "addpath(pwd);cd sample; demo_vol2mesh_ex1; demo_vol2mesh_ex1b; demo_vol2mesh_ex1c" - octave-cli --eval "addpath(pwd);cd sample; demo_vol2mesh_ex2; demo_vol2mesh_ex3" - octave-cli --eval "addpath(pwd);cd sample; demo_surf2mesh_ex1" - octave-cli --eval "addpath(pwd);cd sample; demo_directplc_ex1" - octave-cli --eval "addpath(pwd);cd sample; demo_grayscale_ex1" - octave-cli --eval "addpath(pwd);cd sample; demo_shortcut_ex1" - octave-cli --eval "addpath(pwd);cd sample; demo_surf2vol_ex1" - octave-cli --eval "addpath(pwd);cd sample; demo_label_sizing" - octave-cli --eval "addpath(pwd);cd sample; demo_qmeshcut_ex1" + octave-cli --eval "addpath(pwd);cd sample; tic; demo_vol2mesh_ex1; toc; demo_vol2mesh_ex1b; demo_vol2mesh_ex1c" + octave-cli --eval "addpath(pwd);cd sample; tic; demo_vol2mesh_ex2; toc; demo_vol2mesh_ex3; toc" + octave-cli --eval "addpath(pwd);cd sample; tic; demo_surf2mesh_ex1; toc" + octave-cli --eval "addpath(pwd);cd sample; tic; demo_directplc_ex1; toc" + octave-cli --eval "addpath(pwd);cd sample; tic; demo_grayscale_ex1; toc" + octave-cli --eval "addpath(pwd);cd sample; tic; demo_shortcut_ex1; toc" + octave-cli --eval "addpath(pwd);cd sample; tic; demo_surf2vol_ex1; toc" + octave-cli --eval "addpath(pwd);cd sample; tic; demo_label_sizing; toc" + octave-cli --eval "addpath(pwd);cd sample; tic; demo_qmeshcut_ex1; toc" matlab_test: name: MATLAB test @@ -61,21 +61,21 @@ jobs: - name: Run MATLAB test uses: matlab-actions/run-command@v1 with: - command: addpath(pwd);cd sample; demo_vol2mesh_ex1; demo_vol2mesh_ex1b; demo_vol2mesh_ex1c + command: addpath(pwd);cd sample; tic; demo_vol2mesh_ex1; toc; demo_vol2mesh_ex1b; toc; demo_vol2mesh_ex1c; toc - name: Run MATLAB examples uses: matlab-actions/run-command@v1 with: - command: addpath(pwd);cd sample; demo_vol2mesh_ex2; demo_vol2mesh_ex3 + command: addpath(pwd);cd sample; tic; demo_vol2mesh_ex2; toc; demo_vol2mesh_ex3; toc - name: Run MATLAB examples uses: matlab-actions/run-command@v1 with: - command: addpath(pwd);cd sample; demo_surf2mesh_ex1; demo_directplc_ex1; demo_grayscale_ex1 + command: addpath(pwd);cd sample; tic; demo_surf2mesh_ex1; demo_directplc_ex1; toc; demo_grayscale_ex1; toc - name: Run MATLAB examples uses: matlab-actions/run-command@v1 with: - command: addpath(pwd);cd sample; demo_shortcut_ex1; demo_surf2vol_ex1; demo_label_sizing + command: addpath(pwd);cd sample; tic; demo_shortcut_ex1; demo_surf2vol_ex1; toc; demo_label_sizing; toc - name: Run MATLAB examples uses: matlab-actions/run-command@v1 with: - command: addpath(pwd);cd sample; demo_qmeshcut_ex1 + command: addpath(pwd);cd sample; tic; demo_qmeshcut_ex1; toc diff --git a/sample/demo_vol2mesh_ex1b.m b/sample/demo_vol2mesh_ex1b.m index 3370363..540cf85 100644 --- a/sample/demo_vol2mesh_ex1b.m +++ b/sample/demo_vol2mesh_ex1b.m @@ -22,7 +22,7 @@ % element, as 'cgalsurf' promises. [node, elem, face] = vol2mesh(volimage > 0.05, 1:size(volimage, 1), 1:size(volimage, 2), ... - 1:size(volimage, 3), 0.1, 2, 1, 'simplify'); + 1:size(volimage, 3), 0.08, 2, 1, 'simplify'); %% visualize the resulting mesh diff --git a/tools/PoissonRecon b/tools/PoissonRecon index 455ea0d..e04a91d 160000 --- a/tools/PoissonRecon +++ b/tools/PoissonRecon @@ -1 +1 @@ -Subproject commit 455ea0dbe651f31bf6985ff2891becff1dd79c72 +Subproject commit e04a91d40093dd80669afb07f7d3f586db063ee9 diff --git a/tools/meshfix b/tools/meshfix index 6888ecb..b2b45ee 160000 --- a/tools/meshfix +++ b/tools/meshfix @@ -1 +1 @@ -Subproject commit 6888ecb2d49667f7f941863935a5608da30a2774 +Subproject commit b2b45eef060605e818cc69e83e8a8b4b3d9b01f2 diff --git a/tools/tetgen b/tools/tetgen index 603ba18..213548f 160000 --- a/tools/tetgen +++ b/tools/tetgen @@ -1 +1 @@ -Subproject commit 603ba181ebfaed38eec88532720e282606009b73 +Subproject commit 213548f5bca1ec00269603703f0fec1272181587