add retry on running integrations step

This commit is contained in:
Lendemor 2024-08-23 18:15:58 +02:00
parent ba6bf69b02
commit aa59eddc31

View File

@ -47,10 +47,14 @@ jobs:
create-venv-at-path: .venv create-venv-at-path: .venv
- run: poetry run uv pip install pyvirtualdisplay pillow playwright pytest-playwright - run: poetry run uv pip install pyvirtualdisplay pillow playwright pytest-playwright
- name: Run app harness tests - name: Run app harness tests
uses: nick-fields/retry@v3
env: env:
SCREENSHOT_DIR: /tmp/screenshots SCREENSHOT_DIR: /tmp/screenshots
REDIS_URL: ${{ matrix.state_manager == 'redis' && 'redis://localhost:6379' || '' }} REDIS_URL: ${{ matrix.state_manager == 'redis' && 'redis://localhost:6379' || '' }}
run: | with:
timeout_minutes: 10
max_attempts: 2
command: |
poetry run playwright install --with-deps poetry run playwright install --with-deps
poetry run pytest integration poetry run pytest integration
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4