From a601a6d1b53c275152abe061a6c652503b924b90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Fri, 17 Jan 2020 16:34:41 -0700 Subject: macOS: repeat the test up to 2x if it fails This is a workaround for #16. It turns out that if the executable fails to run, just rerunning all tests typically fixes it. --- .github/workflows/CI.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to '.github') diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0c8ad35..14e82a6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -50,7 +50,7 @@ jobs: --slave /usr/bingcov gcov /usr/bin/gcov-${GCC_V} - name: Install GFortran macOS - if: contains( matrix.os, 'macos') + if: contains(matrix.os, 'macos') run: brew install gcc@${GCC_V} || brew upgrade gcc@${GCC_V} || true - name: Install Rust @@ -60,8 +60,14 @@ jobs: - name: Build run: | - cargo build --verbose + cargo test --verbose --no-run - - name: Run tests + - name: Run tests (Linux, Windows) + if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'windows') run: | - cargo test --verbose -j1 + cargo test + + - name: Run tests (macOS) + if: contains(matrix.os, 'macos') + run: | + cargo test || cargo test || cargo test -- cgit v1.2.3 From 7b0097267a5c4c14be7e1b3893acda372413ef7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20=C4=8Cert=C3=ADk?= Date: Fri, 17 Jan 2020 16:39:06 -0700 Subject: Add a link to the issue --- .github/workflows/CI.yml | 1 + 1 file changed, 1 insertion(+) (limited to '.github') diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 14e82a6..fce7da1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -67,6 +67,7 @@ jobs: run: | cargo test + # Workaround for https://github.com/fortran-lang/fpm/issues/16 - name: Run tests (macOS) if: contains(matrix.os, 'macos') run: | -- cgit v1.2.3