AdbeUnitTests-Api23 #132
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: AdbeUnitTests-Api23 | |
on: | |
schedule: | |
- cron: '0 0 * * 0' # Sunday midnight UTC | |
pull_request: | |
branches: [master, main] | |
paths: | |
- '.github/workflows/adbe-unittests-api23.yml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
testOnAp23: | |
runs-on: macos-latest | |
timeout-minutes: 15 | |
strategy: | |
matrix: | |
api-level: [23] | |
target: [default] # Other option: google_apis | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: Gradle cache | |
uses: gradle/gradle-build-action@v3 | |
- name: AVD cache | |
uses: actions/cache@v4 | |
id: avd-cache | |
with: | |
path: | | |
~/.android/avd/* | |
~/.android/adb* | |
key: avd-${{ matrix.api-level }} | |
- name: Create AVD and generate snapshot for caching | |
if: steps.avd-cache.outputs.cache-hit != 'true' | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: ${{ matrix.api-level }} | |
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: Run tests | |
uses: reactivecircus/android-emulator-runner@v2 | |
with: | |
api-level: ${{ matrix.api-level }} | |
force-avd-creation: false | |
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none | |
disable-animations: true | |
target: ${{ matrix.target }} | |
script: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install --user -r requirements.txt | |
make test_python3 |