Skip to content

Implement setting and clearing debug app #146

Implement setting and clearing debug app

Implement setting and clearing debug app #146

name: AdbeInstallTests
on:
push:
branches: [master, main]
paths:
- 'Makefile'
- 'requirements.txt'
- 'setup.py'
- 'setup.cfg'
- 'adbe/*'
- 'tests/*'
- '.github/workflows/adbe-installtests.yml'
pull_request:
branches: [master, main]
paths:
- 'Makefile'
- 'requirements.txt'
- 'setup.py'
- 'setup.cfg'
- 'adbe/*'
- 'tests/*'
- '.github/workflows/adbe-installtests.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
testOnAndroidDevice:
runs-on: macos-latest
timeout-minutes: 30
strategy:
matrix:
api-level: [21]
target: [default] # Other option: google_apis
steps:
- name: checkout
uses: actions/checkout@v4
- name: run tests
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.api-level }}
target: ${{ matrix.target }}
arch: x86_64
profile: Nexus 6
script: |
python3 -m pip install --upgrade pip
python3 -m pip install --user -r requirements.txt
touch docs/README.rst
make build
python3 -m pip install --user dist/*.whl
set -v
# Ref: https://stackoverflow.com/a/62151306/434196
ls $(python3 -m site --user-base)
ls $(python3 -m site --user-base)/bin
ls $(python3 -m site --user-base)/bin/adbe
$(python3 -m site --user-base)/bin/adbe --version
PATH=$PATH:$(python3 -m site --user-base)/bin adbe --version # Verify adbe is installed
PATH=$PATH:$(python3 -m site --user-base)/bin make test_python3_installation