4646 ios :
4747 name : Test on iOS
4848 runs-on : macos-15
49- if : false
5049 steps :
5150 - name : Checkout repository
5251 uses : actions/checkout@v4
@@ -57,74 +56,24 @@ jobs:
5756 path : ' .fvmrc'
5857 cache : true
5958
59+ - name : Launch iOS Simulator
60+ uses : futureware-tech/simulator-action@v4
61+ with :
62+ model : ' iPhone 16'
63+ shutdown_after_job : true
64+ wait_for_boot : true
65+
6066 - name : Build iOS
6167 shell : bash
6268 working-directory : " src/serious_python/example/flet_example"
6369 run : |
70+ flutter devices
6471 dart run serious_python:main package app/src -p iOS -r flet -r --pre
6572 flutter build ios --no-codesign
6673
74+
6775 android :
6876 name : Test on Android
69- runs-on : ubuntu-24.04
70- env :
71- API_LEVEL : " 33"
72- TARGET : " google_atd"
73- ARCH : " x86_64"
74- DEVICE_NAME : " android_emulator"
75- DEVICE_TYPE : " pixel_5"
76- steps :
77- - name : Checkout repository
78- uses : actions/checkout@v4
79-
80- - name : Setup Flutter
81- uses : kuhnroyal/flutter-fvm-config-action/setup@v3
82- with :
83- path : ' .fvmrc'
84- cache : true
85-
86- - name : Set up JDK 17
87- uses : actions/setup-java@v3
88- with :
89- java-version : ' 17'
90- distribution : ' temurin'
91-
92- - name : Setup Android SDK
93- uses : android-actions/setup-android@v3
94- with :
95- packages : ' tools platform-tools'
96- accept-android-sdk-licenses : true
97- log-accepted-android-sdk-licenses : true
98-
99- # - name: Accept SDK licenses
100- # shell: bash
101- # run: |
102- # sudo apt-get update
103- # sudo apt-get install -y unzip
104- # echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --licenses || true
105-
106- - name : Prepare Android emulator
107- shell : bash
108- run : |
109- export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator:$PATH
110- sdkmanager --list_installed
111- sdkmanager "platforms;android-${API_LEVEL}"
112- sdkmanager --install "system-images;android-${API_LEVEL};${TARGET};${ARCH}"
113- sdkmanager --update
114- echo "no" | avdmanager -v create avd --force --name "$DEVICE_NAME" --package "system-images;android-${API_LEVEL};${TARGET};${ARCH}" --tag "$TARGET" --sdcard 128M --device "$DEVICE_TYPE"
115- sudo adduser $USER kvm
116- sudo chown $USER /dev/kvm
117- emulator -avd "${DEVICE_NAME}" -memory 2048 -wipe-data -no-boot-anim -noaudio -no-window -accel off -partition-size 8192 &
118- adb wait-for-device shell 'while [[ -z $(getprop dev.bootcomplete) ]]; do sleep 1; done;'
119-
120- - name : Run tests
121- shell : bash
122- run : |
123- cd src/serious_python/example/flet_example
124- dart run serious_python:main package app/src -p Android -r flet -r --pre
125- flutter test integration_test -d emulator-5554
126-
127- emulator :
12877 runs-on : ubuntu-latest
12978 steps :
13079 - name : Checkout repository
13685 path : ' .fvmrc'
13786 cache : true
13887
139- - name : Setup SDK for Android
140- uses : android-actions/setup-android@v3
141-
14288 - name : Enable KVM
14389 run : |
14490 echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
@@ -170,22 +116,12 @@ jobs:
170116 disk-size : 4096M
171117 emulator-port : 5554
172118 disable-animations : true
173- # cmake: 3.10.2.4988404
174119 emulator-options : -no-window -noaudio -no-boot-anim -memory 2048 -wipe-data -cache-size 1000 -partition-size 8192
175120 pre-emulator-launch-script : |
176121 sdkmanager --list_installed
177122 script : |
178- cd src/serious_python/example/flet_example && ls -la
179123 cd src/serious_python/example/flet_example && dart run serious_python:main package app/src -p Android -r flet -r --pre
180- cd src/serious_python/example/flet_example && flutter test integration_test -d emulator-5554
181-
182- - name : Run tests
183- shell : bash
184- working-directory : " src/serious_python/example/flet_example"
185- run : |
186- dart run serious_python:main package app/src -p Android -r flet -r --pre
187- flutter test integration_test -d emulator-5554
188-
124+ cd src/serious_python/example/flet_example && flutter test integration_test --device-id emulator-5554
189125
190126 windows :
191127 name : Test on Windows
0 commit comments