-
-
Notifications
You must be signed in to change notification settings - Fork 81
60 lines (57 loc) · 1.73 KB
/
adbe-installtests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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