Skip to content

Commit

Permalink
split tests into half
Browse files Browse the repository at this point in the history
  • Loading branch information
adhami3310 committed Nov 6, 2024
1 parent 4177004 commit 9177957
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/integration_app_harness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ concurrency:

on:
push:
branches: ['main']
branches: ["main"]
paths-ignore:
- '**/*.md'
- "**/*.md"
pull_request:
branches: ['main']
branches: ["main"]
paths-ignore:
- '**/*.md'
- "**/*.md"

permissions:
contents: read
Expand All @@ -22,8 +22,9 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
state_manager: ['redis', 'memory']
python-version: ['3.11.5', '3.12.0']
state_manager: ["redis", "memory"]
split_index: [0, 1]
python-version: ["3.11.5", "3.12.0"]
runs-on: ubuntu-22.04
services:
# Label used to access the service container
Expand All @@ -45,14 +46,14 @@ jobs:
python-version: ${{ matrix.python-version }}
run-poetry-install: true
create-venv-at-path: .venv
- run: poetry run uv pip install pyvirtualdisplay pillow
- run: poetry run uv pip install pyvirtualdisplay pillow pytest-split
- name: Run app harness tests
env:
SCREENSHOT_DIR: /tmp/screenshots
REDIS_URL: ${{ matrix.state_manager == 'redis' && 'redis://localhost:6379' || '' }}
run: |
poetry run playwright install --with-deps
poetry run pytest tests/integration
poetry run pytest tests/integration --split-index=${{matrix.split_index}}--split-total=2
- uses: actions/upload-artifact@v4
name: Upload failed test screenshots
if: always()
Expand Down

0 comments on commit 9177957

Please sign in to comment.