-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.12 KB
/
appium_tests.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
name: Run Appium Tests
on:
push:
branches:
- main
jobs:
appium-tests:
runs-on: ubuntu-latest
services:
appium:
image: appium/appium
ports:
- 4723:4723
options: --entrypoint=appium
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
- name: Wait for Android Emulator
run: |
adb wait-for-device
adb shell input keyevent 82
- name: Set environment variables
run: |
echo "APP_DIR=/app/Config/kbl.apk" >> $GITHUB_ENV
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r web/requirements.txt
- name: Run Appium Tests
run: |
python -m unittest mobile_tests/test_appium.py