Skip to content

Commit

Permalink
Implement action to setup Android emulator in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rmartin16 committed May 22, 2024
1 parent 2bf76fe commit b962c6d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,12 +281,22 @@ jobs:
python -m pip install -U pip
python -m pip install git+https://github.com/beeware/briefcase.git
- name: Setup Android Emulator
id: emulator
if: matrix.backend == 'android'
uses: rmartin16/.github-beeware/.github/actions/setup-android@setup-android
with:
emulator-config: '{"avd":"beePhone","skin":"pixel_3a"}'

- name: Test App
working-directory: testbed
timeout-minutes: 15
run: |
${{ matrix.briefcase-run-prefix }} \
briefcase run ${{ matrix.platform }} --test ${{ matrix.briefcase-run-args }}
run: >
${{ matrix.briefcase-run-prefix }}
briefcase run ${{ matrix.platform }}
--test
${{ matrix.briefcase-run-args }}
${{ steps.emulator.outputs.briefcase-run-args }}
- name: Upload Logs
uses: actions/upload-artifact@v4.3.3
Expand Down
1 change: 1 addition & 0 deletions changes/2597.misc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CI now uses a centralized action to configure the environment for using the Android emulator.

0 comments on commit b962c6d

Please sign in to comment.