Skip to content

Commit f1c1d14

Browse files
committed
fix: single-precision CI — pass $PRECISION to Test step, use mpi build, remove Example skip
1 parent d513442 commit f1c1d14

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ jobs:
172172

173173
include:
174174
- os: ubuntu
175-
mpi: no-mpi
175+
mpi: mpi
176176
precision: single
177177
debug: no-debug
178178
intel: false
@@ -386,11 +386,12 @@ jobs:
386386
- name: Test
387387
if: '!matrix.nvhpc'
388388
run: |
389-
/bin/bash mfc.sh test -v --max-attempts 3 -j $(nproc) $ONLY_CHANGES $TEST_ALL $TEST_PCT
389+
/bin/bash mfc.sh test -v --max-attempts 3 -j $(nproc) $ONLY_CHANGES $TEST_ALL $TEST_PCT $PRECISION
390390
env:
391391
TEST_ALL: ${{ matrix.mpi == 'mpi' && '--test-all' || '' }}
392392
TEST_PCT: ${{ matrix.debug == 'reldebug' && '-% 20' || '' }}
393393
ONLY_CHANGES: ${{ github.event_name == 'pull_request' && '--only-changes' || '' }}
394+
PRECISION: ${{ matrix.precision != '' && format('--{0}', matrix.precision) || '' }}
394395

395396
# ── NVHPC build + test (via docker exec into long-lived container) ──
396397
- name: Build (NVHPC)

toolchain/mfc/test/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def __filter(cases_) -> typing.Tuple[typing.List[TestCase], typing.List[TestCase
176176

177177
for case in cases[:]:
178178
if ARG("single"):
179-
skip = ["low_Mach", "Hypoelasticity", "teno", "Chemistry", "Phase Change model 6", "Axisymmetric", "Transducer", "Transducer Array", "Cylindrical", "HLLD", "Example"]
179+
skip = ["low_Mach", "Hypoelasticity", "teno", "Chemistry", "Phase Change model 6", "Axisymmetric", "Transducer", "Transducer Array", "Cylindrical", "HLLD"]
180180
if any(label in case.trace for label in skip):
181181
cases.remove(case)
182182
skipped_cases.append(case)

0 commit comments

Comments
 (0)