Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
branches: [main]
merge_group:
workflow_dispatch:
inputs:
ui-tests:
description: Run the emulator UI tests
type: boolean
default: false

permissions:
contents: read
Expand Down Expand Up @@ -43,6 +48,7 @@ jobs:

instrumentation:
name: Android emulator UI tests (API ${{ matrix.api }}, shard ${{ matrix.shard }})
if: inputs.ui-tests
runs-on: ubuntu-24.04
timeout-minutes: 60
strategy:
Expand Down Expand Up @@ -109,6 +115,7 @@ jobs:

instrumentation-reports:
name: Check combined UI screenshots
if: inputs.ui-tests
needs: instrumentation
runs-on: ubuntu-24.04
timeout-minutes: 5
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ python3 scripts/check-ui-screenshots.py
```

Gradle downloads the emulator image for the host architecture. The first run can take several minutes.
CI runs the full `androidTest` suite across three parallel runners, without a class or method filter.
CI does not run the UI tests on pull requests or main pushes, because emulator failures were unreliable.
To run them, start the CI workflow manually and select **Run the emulator UI tests**:
`gh workflow run ci.yml -f ui-tests=true`.
A manual run executes the full `androidTest` suite across three parallel runners, without a class or method filter.
AndroidJUnitRunner assigns each test to one shard with `numShards=3` and `shardIndex=0`, `1`, or `2`.
CI caches the SDK, emulator, and system image. Each runner creates its own managed AVD;
snapshots are not shared between hosts. New main pushes cancel older main runs. Pull request runs use separate groups.
Expand Down
Loading