diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 203b55f5c..5cf41c2b7 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -63,6 +63,9 @@ jobs: name: Create and activate environment run: mamba env update -n nwb-guide -f ${{ matrix.label }} + - name: Display conda environment + run: conda list + - name: Use Node.js 18 uses: actions/setup-node@v3 with: @@ -73,12 +76,23 @@ jobs: - if: matrix.os != 'ubuntu-latest' name: Run tests - run: npm run test:coverage + uses: nick-fields/retry@v3 + with: + timeout_minutes: 30 + max_attempts: 3 + retry_on: error + shell: bash + command: conda init && conda activate nwb-guide && npm run test:coverage - if: matrix.os == 'ubuntu-latest' name: Run tests with xvfb - run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test:coverage - + uses: nick-fields/retry@v3 + with: + timeout_minutes: 30 + max_attempts: 3 + retry_on: error + shell: bash + command: conda init && conda activate nwb-guide && xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run test:coverage - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3