Skip to content

Commit b23b327

Browse files
committed
updates
1 parent 454d0fa commit b23b327

File tree

2 files changed

+15
-18
lines changed

2 files changed

+15
-18
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ env:
2525
jobs:
2626
macos:
2727
name: Test on macOS
28-
runs-on: macos-latest
28+
runs-on: macos-15
2929
steps:
3030
- name: Checkout repository
3131
uses: actions/checkout@v4
@@ -38,15 +38,15 @@ jobs:
3838

3939
- name: Run tests
4040
shell: bash
41+
working-directory: "src/serious_python/example/flet_example"
4142
run: |
42-
export SERIOUS_PYTHON_SITE_PACKAGES=$GITHUB_WORKSPACE/site-packages
43-
cd src/serious_python/example/flet_example
4443
dart run serious_python:main package app/src -p Darwin -r flet -r --pre
45-
flutter test integration_test -d macos
44+
flutter test integration_test --device-id macos
4645
4746
ios:
4847
name: Test on iOS
49-
runs-on: macos-latest
48+
runs-on: macos-15
49+
if: false
5050
steps:
5151
- name: Checkout repository
5252
uses: actions/checkout@v4
@@ -57,19 +57,22 @@ jobs:
5757
path: '.fvmrc'
5858
cache: true
5959

60-
- name: Build iOS (no codesign)
60+
- name: Build iOS
6161
shell: bash
62+
working-directory: "src/serious_python/example/flet_example"
6263
run: |
63-
export SERIOUS_PYTHON_SITE_PACKAGES=$GITHUB_WORKSPACE/site-packages
64-
cd src/serious_python/example/flet_example
6564
dart run serious_python:main package app/src -p iOS -r flet -r --pre
6665
flutter build ios --no-codesign
67-
# add simulator drive steps later if needed
6866
6967
android:
7068
name: Test on Android
71-
if: false
7269
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"
7376
steps:
7477
- name: Checkout repository
7578
uses: actions/checkout@v4
@@ -89,7 +92,7 @@ jobs:
8992
- name: Setup Android SDK
9093
uses: android-actions/setup-android@v3
9194
with:
92-
packages: 'tools platform-tools'
95+
packages: 'tools platform-tools platforms;android-${API_LEVEL}'
9396

9497
- name: Accept SDK licenses
9598
shell: bash
@@ -99,12 +102,6 @@ jobs:
99102
echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --licenses || true
100103
101104
- name: Prepare Android emulator
102-
env:
103-
API_LEVEL: "33"
104-
TARGET: "google_atd"
105-
ARCH: "x86_64"
106-
DEVICE_NAME: "android_emulator"
107-
DEVICE_TYPE: "pixel_5"
108105
shell: bash
109106
run: |
110107
export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/emulator:$PATH

src/serious_python/example/flet_example/integration_test/app_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ void main() {
1010
testWidgets('make sure counter can be incremented and decremented',
1111
(tester) async {
1212
app.main();
13-
await tester.pumpAndSettle();
13+
await tester.pumpAndSettle(const Duration(seconds: 5));
1414

1515
// Wait for up to 10 seconds for the app to start
1616
bool counterFound = false;

0 commit comments

Comments
 (0)