From 1772f2e538639d88239d3599ba1ad063ff52e8d3 Mon Sep 17 00:00:00 2001 From: jtgrasb <87095491+jtgrasb@users.noreply.github.com> Date: Mon, 23 Feb 2026 09:53:42 -0700 Subject: [PATCH 1/6] Don't skip MoorDyn tests --- .github/workflows/run-tests-reusable.yml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.github/workflows/run-tests-reusable.yml b/.github/workflows/run-tests-reusable.yml index ce6a373a..5ca3ad4a 100644 --- a/.github/workflows/run-tests-reusable.yml +++ b/.github/workflows/run-tests-reusable.yml @@ -29,13 +29,6 @@ jobs: os: [ubuntu-latest, windows-latest] release: [R2024b] include: ${{ fromJSON(inputs.include) }} - exclude: - - os: ubuntu-latest - folder: Mooring - - os: ubuntu-latest - folder: OWC - - os: ubuntu-latest - folder: Paraview_Visualization name: "${{ matrix.folder }} - ${{ matrix.os }} - ${{ matrix.release }}" timeout-minutes: 45 steps: From 2d0bc44628cd1ef04bb265d26966b8dd5985377b Mon Sep 17 00:00:00 2001 From: jtgrasb <87095491+jtgrasb@users.noreply.github.com> Date: Mon, 23 Feb 2026 09:59:09 -0700 Subject: [PATCH 2/6] Adjust lines.txt spacing to trigger tests --- Mooring/MoorDyn/Mooring/lines.txt | 2 +- OWC/FloatingOWC/Mooring/lines.txt | 2 +- Paraview_Visualization/RM3_MoorDyn_Viz/Mooring/lines.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Mooring/MoorDyn/Mooring/lines.txt b/Mooring/MoorDyn/Mooring/lines.txt index bbe4e4f1..c4a7384d 100644 --- a/Mooring/MoorDyn/Mooring/lines.txt +++ b/Mooring/MoorDyn/Mooring/lines.txt @@ -2,7 +2,7 @@ Mooring line data file for MoorDyn in libmoordyn.dll ---------------------- LINE TYPES ----------------------------------------------------- LineType Diam Mass/m EA BA/-zeta EI Cd Ca CdAx CaAx (-) (m) (kg/m) (N) (N-s/-) (N-m^2) (-) (-) (-) (-) -Chain 0.144 126.0 583.376E6 -0.8 0 1.6 1.0 0.05 0.0 +Chain 0.144 126.0 583.376E6 -0.8 0 1.6 1.0 0.05 0.0 ---------------------------- BODIES ----------------------------------------------------- ID Attachment X0 Y0 Z0 r0 p0 y0 Mass CG* I* Volume CdA* Ca (#) (-) (m) (m) (m) (deg) (deg) (deg) (kg) (m) (kg-m^2) (m^3) (m^2) (-) diff --git a/OWC/FloatingOWC/Mooring/lines.txt b/OWC/FloatingOWC/Mooring/lines.txt index 79a0f3c0..571f17af 100644 --- a/OWC/FloatingOWC/Mooring/lines.txt +++ b/OWC/FloatingOWC/Mooring/lines.txt @@ -6,7 +6,7 @@ Chain 0.032 34.82 1.5e6 -0.8 1e4 1.6 1.0 0 ---------------------------- BODIES ----------------------------------------------------- ID Attachment X0 Y0 Z0 r0 p0 y0 Mass CG* I* Volume CdA* Ca (#) (-) (m) (m) (m) (deg) (deg) (deg) (kg) (m) (kg-m^2) (m^3) (m^2) (-) -1 Coupled 0 0 -2.58 0 0 0 2.914e6 -31.96 1.53e9 2.9013e3 0 0 +1 Coupled 0 0 -2.58 0 0 0 2.914e6 -31.96 1.53e9 2.9013e3 0 0 ---------------------- POINTS ----------------------------------------------------- ID Attachment X Y Z Mass Volume CdA CA (#) (word/ID) (m) (m) (m) (kg) (mˆ3) (m^2) (-) diff --git a/Paraview_Visualization/RM3_MoorDyn_Viz/Mooring/lines.txt b/Paraview_Visualization/RM3_MoorDyn_Viz/Mooring/lines.txt index c2917991..7e4971ee 100644 --- a/Paraview_Visualization/RM3_MoorDyn_Viz/Mooring/lines.txt +++ b/Paraview_Visualization/RM3_MoorDyn_Viz/Mooring/lines.txt @@ -2,7 +2,7 @@ Mooring line data file for MoorDyn in libmoordyn.dll ---------------------- LINE TYPES ----------------------------------------------------- LineType Diam Mass/m EA BA/-zeta EI Cd Ca CdAx CaAx (-) (m) (kg/m) (N) (N-s/-) (N-m^2) (-) (-) (-) (-) -Chain 0.144 126.0 583.376E6 -0.8 0 1.6 1.0 0.05 0.0 +Chain 0.144 126.0 583.376E6 -0.8 0 1.6 1.0 0.05 0.0 ---------------------------- BODIES ----------------------------------------------------- ID Attachment X0 Y0 Z0 r0 p0 y0 Mass CG* I* Volume CdA* Ca (#) (-) (m) (m) (m) (deg) (deg) (deg) (kg) (m) (kg-m^2) (m^3) (m^2) (-) From ae8920de976baca8defa0833c1f6f798013f90c2 Mon Sep 17 00:00:00 2001 From: jtgrasb <87095491+jtgrasb@users.noreply.github.com> Date: Mon, 23 Feb 2026 10:36:55 -0700 Subject: [PATCH 3/6] Skip ubuntu --- .github/workflows/run-tests-reusable.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/run-tests-reusable.yml b/.github/workflows/run-tests-reusable.yml index 5ca3ad4a..ce6a373a 100644 --- a/.github/workflows/run-tests-reusable.yml +++ b/.github/workflows/run-tests-reusable.yml @@ -29,6 +29,13 @@ jobs: os: [ubuntu-latest, windows-latest] release: [R2024b] include: ${{ fromJSON(inputs.include) }} + exclude: + - os: ubuntu-latest + folder: Mooring + - os: ubuntu-latest + folder: OWC + - os: ubuntu-latest + folder: Paraview_Visualization name: "${{ matrix.folder }} - ${{ matrix.os }} - ${{ matrix.release }}" timeout-minutes: 45 steps: From 51eb54582264566b22284dd8937eea2768ae9763 Mon Sep 17 00:00:00 2001 From: jtgrasb <87095491+jtgrasb@users.noreply.github.com> Date: Thu, 9 Apr 2026 16:41:19 -0600 Subject: [PATCH 4/6] skip moordyn tests for windows as well --- .github/workflows/run-tests-reusable.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/run-tests-reusable.yml b/.github/workflows/run-tests-reusable.yml index ce6a373a..b6fbabb9 100644 --- a/.github/workflows/run-tests-reusable.yml +++ b/.github/workflows/run-tests-reusable.yml @@ -30,6 +30,12 @@ jobs: release: [R2024b] include: ${{ fromJSON(inputs.include) }} exclude: + - os: windows-latest + folder: Mooring + - os: windows-latest + folder: OWC + - os: windows-latest + folder: Paraview_Visualization - os: ubuntu-latest folder: Mooring - os: ubuntu-latest From 898cd1f449e9780a0dd0c1054fd90044f7565aca Mon Sep 17 00:00:00 2001 From: jtgrasb <87095491+jtgrasb@users.noreply.github.com> Date: Wed, 27 May 2026 15:45:59 -0600 Subject: [PATCH 5/6] Try skipping each test based on GitHub actions CI --- .github/workflows/run-tests-reusable.yml | 13 ------------- Mooring/TestMooring.m | 4 +++- OWC/TestOWC.m | 7 ++++--- .../RM3_MoorDyn_Viz/TestMoorDynViz.m | 2 ++ 4 files changed, 9 insertions(+), 17 deletions(-) diff --git a/.github/workflows/run-tests-reusable.yml b/.github/workflows/run-tests-reusable.yml index b6fbabb9..5ca3ad4a 100644 --- a/.github/workflows/run-tests-reusable.yml +++ b/.github/workflows/run-tests-reusable.yml @@ -29,19 +29,6 @@ jobs: os: [ubuntu-latest, windows-latest] release: [R2024b] include: ${{ fromJSON(inputs.include) }} - exclude: - - os: windows-latest - folder: Mooring - - os: windows-latest - folder: OWC - - os: windows-latest - folder: Paraview_Visualization - - os: ubuntu-latest - folder: Mooring - - os: ubuntu-latest - folder: OWC - - os: ubuntu-latest - folder: Paraview_Visualization name: "${{ matrix.folder }} - ${{ matrix.os }} - ${{ matrix.release }}" timeout-minutes: 45 steps: diff --git a/Mooring/TestMooring.m b/Mooring/TestMooring.m index 0a4f12cd..8f1fc5c9 100644 --- a/Mooring/TestMooring.m +++ b/Mooring/TestMooring.m @@ -49,8 +49,10 @@ function checkVisibilityRestored(testCase) end end - methods(Test) + methods(Test) function testMoorDyn(testCase) + isCI = strcmpi(getenv("GITHUB_ACTIONS"), "true"); + testCase.assumeFalse(isCI, "Skipping MoorDyn test on GitHub CI"); assumeEqual(testCase, ... exist("MoorDyn_caller", "file"), 2, ... "MoorDyn is not installed"); diff --git a/OWC/TestOWC.m b/OWC/TestOWC.m index e10f72f6..3143dde2 100644 --- a/OWC/TestOWC.m +++ b/OWC/TestOWC.m @@ -5,8 +5,8 @@ testDir h5DirOrifice = ['OrificeModel',filesep,'hydroData'] h5NameOrifice = 'test17a.h5' - h5DirFloating = ['FloatingOWC',filesep,'hydroData'] - h5NameFloating = 'floatingOWC.h5' + % h5DirFloating = ['FloatingOWC',filesep,'hydroData'] + % h5NameFloating = 'floatingOWC.h5' end methods (Access = 'public') function obj = TestOWC @@ -60,8 +60,9 @@ function testOWCOrifice(testCase) wecSim close_system('OWC_rigid',0) end - function testOWCFloating(testCase) + isCI = strcmpi(getenv("GITHUB_ACTIONS"), "true"); + testCase.assumeFalse(isCI, "Skipping MoorDyn test on GitHub CI"); assumeEqual(testCase, exist("MoorDyn_caller", "file"), 2, ... "MoorDyn is not installed"); cd('FloatingOWC') diff --git a/Paraview_Visualization/RM3_MoorDyn_Viz/TestMoorDynViz.m b/Paraview_Visualization/RM3_MoorDyn_Viz/TestMoorDynViz.m index b5f899ed..eeef9996 100644 --- a/Paraview_Visualization/RM3_MoorDyn_Viz/TestMoorDynViz.m +++ b/Paraview_Visualization/RM3_MoorDyn_Viz/TestMoorDynViz.m @@ -62,6 +62,8 @@ function removeVTK(testCase) methods(Test) function testParaview_Visualization_RM3_MoorDyn_Viz(testCase) + isCI = strcmpi(getenv("GITHUB_ACTIONS"), "true"); + testCase.assumeFalse(isCI, "Skipping MoorDyn test on GitHub CI"); wecSim end end From 0d5a2ed22e5d082c29b6c408225e49a7f60acf98 Mon Sep 17 00:00:00 2001 From: jtgrasb <87095491+jtgrasb@users.noreply.github.com> Date: Wed, 27 May 2026 16:00:29 -0600 Subject: [PATCH 6/6] Fix OWC test --- OWC/TestOWC.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OWC/TestOWC.m b/OWC/TestOWC.m index 3143dde2..2b186dac 100644 --- a/OWC/TestOWC.m +++ b/OWC/TestOWC.m @@ -5,8 +5,8 @@ testDir h5DirOrifice = ['OrificeModel',filesep,'hydroData'] h5NameOrifice = 'test17a.h5' - % h5DirFloating = ['FloatingOWC',filesep,'hydroData'] - % h5NameFloating = 'floatingOWC.h5' + h5DirFloating = ['FloatingOWC',filesep,'hydroData'] + h5NameFloating = 'floatingOWC.h5' end methods (Access = 'public') function obj = TestOWC