diff options
author | Ondřej Čertík <ondrej@certik.us> | 2020-01-17 16:34:41 -0700 |
---|---|---|
committer | Ondřej Čertík <ondrej@certik.us> | 2020-01-17 16:34:41 -0700 |
commit | a601a6d1b53c275152abe061a6c652503b924b90 (patch) | |
tree | be1a16ad5900ba1d1799318d81f87424a45d7b67 /.github/workflows/CI.yml | |
parent | 2d50ae9f8346d3d2f1516d8cbaf7c367aff1d2f8 (diff) | |
download | fpm-a601a6d1b53c275152abe061a6c652503b924b90.tar.gz fpm-a601a6d1b53c275152abe061a6c652503b924b90.zip |
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.
Diffstat (limited to '.github/workflows/CI.yml')
-rw-r--r-- | .github/workflows/CI.yml | 14 |
1 files changed, 10 insertions, 4 deletions
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 |