Skip to content

Commit

Permalink
[241121] appium 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sc303030 committed Nov 21, 2024
1 parent 28515a1 commit f7fb5dd
Showing 1 changed file with 38 additions and 34 deletions.
72 changes: 38 additions & 34 deletions .github/workflows/appium_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ on:
push:
branches:
- main

jobs:
appium-tests:
appium-test:
runs-on: ubuntu-latest

services:
Expand All @@ -17,35 +16,40 @@ jobs:
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
uses: reactivecircus/android-emulator-runner@v2

- 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
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.*'

- 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: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
npm install -g appium
appium --version
- name: Create Android Emulator
run: |
echo no | avdmanager create avd -n test -k "system-images;android-30;google_apis;x86_64" --device "pixel"
$ANDROID_HOME/emulator/emulator -avd test -no-snapshot -no-audio -no-window &
- name: Start Appium Server
run: |
appium -p 4723 &
shell: bash

- name: Run Appium Tests
run: |
python -m unittest app/Tests/main_test.py

0 comments on commit f7fb5dd

Please sign in to comment.