diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 16218f39be..d24ebe1e13 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -137,21 +137,25 @@ jobs: echo CMake options: ${{ matrix.config.cmake_options }} - name: Install dependencies - run: | - sudo apt update - sudo apt install -y \ - libfftw3-dev \ - libnetcdf-dev \ - libnetcdf-c++4-dev \ - netcdf-bin \ - lcov \ - openmpi-bin \ - libopenmpi-dev \ - petsc-dev \ - slepc-dev \ - liblapack-dev \ - libparpack2-dev \ - libhypre-dev + uses: nick-fields/retry@v2 + with: + timeout_minutes: 5 + max_attempts: 2 + command: | + sudo apt update + sudo apt install -y \ + libfftw3-dev \ + libnetcdf-dev \ + libnetcdf-c++4-dev \ + netcdf-bin \ + lcov \ + openmpi-bin \ + libopenmpi-dev \ + petsc-dev \ + slepc-dev \ + liblapack-dev \ + libparpack2-dev \ + libhypre-dev - uses: actions/checkout@v7 with: