From aa59eddc31f11162f8db2eaafd4281684e9af9f2 Mon Sep 17 00:00:00 2001 From: Lendemor Date: Fri, 23 Aug 2024 18:15:58 +0200 Subject: [PATCH] add retry on running integrations step --- .github/workflows/integration_app_harness.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration_app_harness.yml b/.github/workflows/integration_app_harness.yml index 4e74fb7a0..df6722f51 100644 --- a/.github/workflows/integration_app_harness.yml +++ b/.github/workflows/integration_app_harness.yml @@ -47,12 +47,16 @@ jobs: create-venv-at-path: .venv - run: poetry run uv pip install pyvirtualdisplay pillow playwright pytest-playwright - name: Run app harness tests + uses: nick-fields/retry@v3 env: SCREENSHOT_DIR: /tmp/screenshots REDIS_URL: ${{ matrix.state_manager == 'redis' && 'redis://localhost:6379' || '' }} - run: | - poetry run playwright install --with-deps - poetry run pytest integration + with: + timeout_minutes: 10 + max_attempts: 2 + command: | + poetry run playwright install --with-deps + poetry run pytest integration - uses: actions/upload-artifact@v4 name: Upload failed test screenshots if: always()