From bc914fe01b3fb8d8dfe2d1207edac69d15d264bc Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Thu, 10 Oct 2024 14:55:40 +0200 Subject: [PATCH] [INFRA] Fail CI if ctest finds no tests --- .github/workflows/ci_coverage.yml | 2 +- .github/workflows/ci_documentation.yml | 2 +- .github/workflows/ci_linux.yml | 2 +- .github/workflows/ci_macos.yml | 2 +- .github/workflows/ci_misc.yml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci_coverage.yml b/.github/workflows/ci_coverage.yml index 764ce0abea..dd42a6a849 100644 --- a/.github/workflows/ci_coverage.yml +++ b/.github/workflows/ci_coverage.yml @@ -79,7 +79,7 @@ jobs: - name: Run tests working-directory: build - run: ctest . -j --output-on-failure + run: ctest . -j --output-on-failure --no-tests=error - name: Generate coverage report run: | diff --git a/.github/workflows/ci_documentation.yml b/.github/workflows/ci_documentation.yml index 69cd8cff4b..86ce5d71b7 100644 --- a/.github/workflows/ci_documentation.yml +++ b/.github/workflows/ci_documentation.yml @@ -55,7 +55,7 @@ jobs: - name: Run tests working-directory: build - run: ctest . -j --output-on-failure + run: ctest . -j --output-on-failure --no-tests=error - name: Deploy Preview if: github.event_name == 'pull_request_target' diff --git a/.github/workflows/ci_linux.yml b/.github/workflows/ci_linux.yml index 8ab7da4ee7..26294f313e 100644 --- a/.github/workflows/ci_linux.yml +++ b/.github/workflows/ci_linux.yml @@ -80,5 +80,5 @@ jobs: - name: Run tests working-directory: build - run: ctest . -j --output-on-failure + run: ctest . -j --output-on-failure --no-tests=error diff --git a/.github/workflows/ci_macos.yml b/.github/workflows/ci_macos.yml index 427ceb0ba6..8e1d47eaee 100644 --- a/.github/workflows/ci_macos.yml +++ b/.github/workflows/ci_macos.yml @@ -67,4 +67,4 @@ jobs: - name: Run tests working-directory: build - run: ctest . -j --output-on-failure + run: ctest . -j --output-on-failure --no-tests=error diff --git a/.github/workflows/ci_misc.yml b/.github/workflows/ci_misc.yml index a0cc987c76..f990943084 100644 --- a/.github/workflows/ci_misc.yml +++ b/.github/workflows/ci_misc.yml @@ -85,4 +85,4 @@ jobs: - name: Run tests working-directory: build - run: ctest . -j${{ matrix.build == 'snippet' && '1' || '' }} --output-on-failure + run: ctest . -j${{ matrix.build == 'snippet' && '1' || '' }} --output-on-failure --no-tests=error