diff --git a/.github/workflows/fortran.yml b/.github/workflows/fortran.yml index 40e46d0f..57c40c79 100644 --- a/.github/workflows/fortran.yml +++ b/.github/workflows/fortran.yml @@ -85,10 +85,22 @@ jobs: # at once, so each runs single-threaded: OpenMP and OpenBLAS would otherwise start a # thread per core in every test and oversubscribe the runner. Tests that check # threading set their own thread counts. + # + # A pull request runs the Debug tier without the tests labelled slow (the long lazy-wave, + # mooring and statics campaigns, about 6500 CPU-s of a 21900 CPU-s Debug suite): the -O0 + # faults this tier exists for live in code the remaining tests reach, and the slow tests + # still run in Release on both platforms and on the Prescott kernel. Every push to dev + # and main runs the full suite at -O0, so each merge is hardened without holding the PR. env: OMP_NUM_THREADS: "1" OPENBLAS_NUM_THREADS: "1" - run: ctest --test-dir build --output-on-failure --parallel 4 + FAST_DEBUG: ${{ matrix.build_type == 'Debug' && github.event_name == 'pull_request' }} + run: | + if [ "$FAST_DEBUG" = "true" ]; then + ctest --test-dir build --output-on-failure --parallel 4 -LE slow + else + ctest --test-dir build --output-on-failure --parallel 4 + fi # Round-off fragility: a result that depends on the BLAS kernel fails here although every # job above, on the runner's own kernel, passes. Prescott, an SSE3 kernel of the conda-forge