-
Notifications
You must be signed in to change notification settings - Fork 563
87 lines (71 loc) · 2.31 KB
/
functional-test.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Functional Tests
on:
# Run by manual at this time
workflow_dispatch:
# push:
# branches: [ master ]
# pull_request:
# branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
ios_test:
strategy:
fail-fast: false
matrix:
test_targets:
- target: search_context/find_by_*.py remote_fs_tests.py safari_tests.py execute_driver_tests.py
name: func_test_ios1
runs-on: macos-14
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- name: Select Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 15.3
- run: defaults write com.apple.iphonesimulator PasteboardAutomaticSync -bool false
- uses: futureware-tech/simulator-action@v3
with:
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
model: 'iPhone 15 Plus'
os_version: '17.4'
# needed?
# - run: brew install ffmpeg
# Start Appium
- run: npm install -g appium
- run: |
appium driver install xcuitest
appium plugin install images
appium plugin install execute-driver
nohup appium --use-plugins=images,execute-driver --relaxed-security --log-timestamp --log-no-colors --base-path=/wd/hub > appium.log &
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: 3.9
- run: |
pip install --upgrade pip
pip install --upgrade pipenv
pipenv lock --clear
pipenv install --system
- run: python setup.py install
- run: |
git --no-pager log -n1
python --version
# ffmpeg -version
appium --version
node --version
npm --version
name: Check versions
- run: python -m pytest ${{ matrix.test_targets.target}} --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
working-directory: test/functional/ios
- name: Save server output
if: ${{ always() }}
uses: actions/upload-artifact@master
with:
name: appium-ios-${{matrix.test_targets.name}}.log
path: appium.log