Skip to content

Commit

Permalink
feat: change andrpid emulator settings
Browse files Browse the repository at this point in the history
  • Loading branch information
MummanaSubramanya committed Sep 22, 2024
1 parent 0c3829a commit 8cd8655
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions .github/workflows/functional-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ jobs:
runs-on: ${{ matrix.platform }}

env:
API_LEVEL: 29
API_LEVEL: 28
ARCH: x86
CI: true
XCODE_VERSION: 15.4
Expand All @@ -236,27 +236,27 @@ jobs:
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: AVD cache
if: matrix.e2e-tests == 'flutter-android'
uses: actions/cache@v3
id: avd-cache
with:
path: |
~/.android/avd/*
~/.android/adb*
key: avd-${{ env.API_LEVEL }}

- name: Create AVD and generate snapshot for caching
if: matrix.e2e-tests == 'flutter-android'
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ env.API_LEVEL }}
arch: ${{ env.ARCH }}
target: google_apis
force-avd-creation: false
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
disable-animations: false
script: echo "Generated AVD snapshot for caching."
# - name: AVD cache
# if: matrix.e2e-tests == 'flutter-android'
# uses: actions/cache@v3
# id: avd-cache
# with:
# path: |
# ~/.android/avd/*
# ~/.android/adb*
# key: avd-${{ env.API_LEVEL }}

# - name: Create AVD and generate snapshot for caching
# if: matrix.e2e-tests == 'flutter-android'
# uses: reactivecircus/android-emulator-runner@v2
# with:
# api-level: ${{ env.API_LEVEL }}
# arch: ${{ env.ARCH }}
# target: google_apis
# force-avd-creation: false
# emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
# disable-animations: false
# script: echo "Generated AVD snapshot for caching."

- name: Set up Python 3.12
uses: actions/setup-python@v3
Expand All @@ -283,16 +283,14 @@ jobs:
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ env.API_LEVEL }}
arch: ${{ env.ARCH }}
script: |
pip install --upgrade pip
pip install --upgrade pipenv
pipenv lock --clear
pipenv install -d --system
export PLATFORM=android
pytest test/functional/flutter_integration/*_test.py -k test_camera_mocking --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
target: google_apis
profile: Nexus 5X
target: default
disable-spellchecker: true
disable-animations: true

Expand Down

0 comments on commit 8cd8655

Please sign in to comment.