File tree Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Expand file tree Collapse file tree 3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 70
70
- targetPlatform : Android
71
71
runs-on : [ self-hosted, macOS ]
72
72
test_script : browserstack-sdk pytest -s ./test/test_android.py --browserstack.config "browserstack.android.yml"
73
- - targetPlatform : iOS
74
- runs-on : [ self-hosted, macOS ]
75
- test_script : browserstack-sdk pytest -s ./test/test_ios.py --browserstack.config "browserstack.ios.yml"
76
73
concurrency :
77
74
group : test-${{ matrix.targetPlatform }}
78
75
runs-on : ${{ matrix.runs-on }}
98
95
BROWSERSTACK_ACCESS_KEY : ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
99
96
working-directory : sample/Tests
100
97
run : ${{ matrix.test_script }}
98
+ test-ios :
99
+ name : Run iOS UI tests 🧪
100
+ runs-on : [ self-hosted, macOS ]
101
+ steps :
102
+ - uses : actions/checkout@v3
103
+ with :
104
+ lfs : true
105
+ - name : build iOS app
106
+ working-directory : sample
107
+ run : ./build_ios.sh
108
+ - uses : actions/setup-python@v4
109
+ with :
110
+ python-version : " 3.10"
111
+ - name : Install dependencies
112
+ run : pip install -r "sample/Tests/requirements.txt"
113
+ - name : Run UI tests
114
+ env :
115
+ MAILSLURP_API_KEY : ${{ secrets.MAILSLURP_API_KEY }}
116
+ BROWSERSTACK_USERNAME : ${{ secrets.BROWSERSTACK_USERNAME }}
117
+ BROWSERSTACK_ACCESS_KEY : ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
118
+ working-directory : sample/Tests
119
+ run : browserstack-sdk pytest -s ./test/test_ios.py --browserstack.config "browserstack.ios.yml"
101
120
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ source: pytest-browserstack:sample-sdk:v1.0
26
26
# Set `app` to define the app that is to be used for testing.
27
27
# It can either take the id of any uploaded app or the path of the app directly.
28
28
# app: ./WikipediaSample.apk
29
- app : ./Payload.ipa # For running local tests
29
+ app : ../build/output/iOS/IPA /Payload.ipa # For running local tests
30
30
31
31
# =======================================
32
32
# Platforms (Browsers / Devices to test)
You can’t perform that action at this time.
0 commit comments