Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry on failure #617

Closed
wants to merge 16 commits into from
20 changes: 17 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
Loading