Skip to content

Commit c4230a1

Browse files
authored
Modify test exclusion in GitHub Actions workflow
1 parent acf8c1c commit c4230a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/github_cmake_gnu.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
image: ghcr.io/noaa-gfdl/fms/fms-ci-rocky-gnu:13.2.0
1919
env:
2020
CMAKE_FLAGS: "${{ matrix.build-type }} ${{ matrix.libyaml-flag }}"
21+
EXCLUDE_TESTS: "test_mpp_nesting"
2122
steps:
2223
- name: Checkout code
2324
uses: actions/[email protected]
@@ -29,7 +30,7 @@ jobs:
2930
- name: Build the library
3031
run: make -C build
3132
- name: Run the unit tests
32-
run: cd build && ctest -E test_mpp_nesting --output-on-failure
33+
run: cd build && ctest -E "${EXCLUDE_TESTS}" --output-on-failure
3334

3435
build_arm:
3536
runs-on: ubuntu-24.04-arm
@@ -41,6 +42,7 @@ jobs:
4142
image: ghcr.io/noaa-gfdl/fms/fms-ci-rocky-gnu:13.2.0-arm
4243
env:
4344
CMAKE_FLAGS: "${{ matrix.build-type }} ${{ matrix.libyaml-flag }}"
45+
EXCLUDE_TESTS: ${{ matrix.build-type == '-DCMAKE_BUILD_TYPE=Release' && 'test_mpp_nesting|test_sat_vapor_pres' || 'test_mpp_nesting' }}
4446
steps:
4547
- name: Checkout code
4648
uses: actions/[email protected]
@@ -52,4 +54,4 @@ jobs:
5254
- name: Build the library
5355
run: make -C build
5456
- name: Run the unit tests
55-
run: cd build && ctest -E test_mpp_nesting --output-on-failure
57+
run: cd build && ctest -E "${EXCLUDE_TESTS}" --output-on-failure

0 commit comments

Comments
 (0)