1919 runs-on : ubuntu-latest
2020 steps :
2121 - name : Checkout python-for-android
22- uses : actions/checkout@v4
22+ uses : actions/checkout@v5
2323 - name : Set up Python 3.x
24- uses : actions/setup-python@v5
24+ uses : actions/setup-python@v6
2525 with :
2626 python-version : 3.x
2727 - name : Run flake8
@@ -35,16 +35,18 @@ jobs:
3535 needs : flake8
3636 runs-on : ${{ matrix.os }}
3737 strategy :
38+ fail-fast : false
3839 matrix :
39- python-version : ['3.8', '3.9', '3.10', '3.11']
40- os : [ubuntu-latest, macOs -latest]
40+ python-version : ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.14t' ]
41+ os : [ubuntu-latest, macos -latest]
4142 steps :
4243 - name : Checkout python-for-android
43- uses : actions/checkout@v4
44+ uses : actions/checkout@v5
4445 - name : Set up Python ${{ matrix.python-version }}
45- uses : actions/setup-python@v5
46+ uses : actions/setup-python@v6
4647 with :
4748 python-version : ${{ matrix.python-version }}
49+ allow-prereleases : true
4850 - name : Tox tests
4951 run : |
5052 python -m pip install --upgrade pip
7880 target : testapps-qt
7981 steps :
8082 - name : Checkout python-for-android
81- uses : actions/checkout@v4
83+ uses : actions/checkout@v5
8284 - name : Build python-for-android docker image
8385 run : |
8486 docker build --tag=kivy/python-for-android .
@@ -114,9 +116,9 @@ jobs:
114116 continue-on-error : true
115117 strategy :
116118 matrix :
117- # macos-latest (ATM macos-14 ) runs on Apple Silicon,
118- # macos-13 runs on Intel
119- runs_on : ['macos-latest', 'macos-13 ']
119+ # macos-latest (ATM macos-15 ) runs on Apple Silicon,
120+ # macos-15-intel runs on Intel
121+ runs_on : ['macos-latest', 'macos-15-intel ']
120122 bootstrap :
121123 - name : sdl2
122124 target : testapps-with-numpy
@@ -129,14 +131,14 @@ jobs:
129131 ANDROID_NDK_HOME : ${HOME}/.android/android-ndk
130132 steps :
131133 - name : Checkout python-for-android
132- uses : actions/checkout@v4
134+ uses : actions/checkout@v5
133135 - name : Set up Python 3.x
134- uses : actions/setup-python@v5
136+ uses : actions/setup-python@v6
135137 with :
136138 python-version : 3.x
137139 - name : Install python-for-android
138140 run : |
139- python3 -m pip install -e .
141+ python3 -m pip install --editable .
140142 - name : Install prerequisites via pythonforandroid/prerequisites.py (Experimental)
141143 run : |
142144 python3 pythonforandroid/prerequisites.py
@@ -162,6 +164,26 @@ jobs:
162164 name : ${{ matrix.runs_on }}-${{ matrix.bootstrap.name }}-artifacts
163165 path : dist
164166
167+ test_on_emulator :
168+ name : Run App on Emulator
169+ needs : ubuntu_build
170+ runs-on : ubuntu-latest
171+
172+ steps :
173+ - uses : actions/checkout@v5
174+ - name : Download Artifacts
175+ uses : actions/download-artifact@v5
176+ with :
177+ name : ubuntu-latest-sdl2-artifacts
178+ path : dist/
179+
180+ - name : Setup and start Android Emulator
181+ uses : reactivecircus/android-emulator-runner@v2
182+ with :
183+ api-level : 30
184+ arch : x86_64
185+ script : ci/run_emulator_tests.sh
186+
165187 ubuntu_rebuild_updated_recipes :
166188 name : Test updated recipes for arch ${{ matrix.android_arch }} [ ubuntu-latest ]
167189 needs : [flake8]
@@ -174,7 +196,7 @@ jobs:
174196 REBUILD_UPDATED_RECIPES_EXTRA_ARGS : --arch=${{ matrix.android_arch }}
175197 steps :
176198 - name : Checkout python-for-android (all-history)
177- uses : actions/checkout@v4
199+ uses : actions/checkout@v5
178200 with :
179201 fetch-depth : 0
180202 # helps with GitHub runner getting out of space
@@ -201,9 +223,9 @@ jobs:
201223 strategy :
202224 matrix :
203225 android_arch : ["arm64-v8a", "armeabi-v7a", "x86_64", "x86"]
204- # macos-latest (ATM macos-14 ) runs on Apple Silicon,
205- # macos-13 runs on Intel
206- runs_on : ['macos-latest', 'macos-13 ']
226+ # macos-latest (ATM macos-15 ) runs on Apple Silicon,
227+ # macos-15-intel runs on Intel
228+ runs_on : ['macos-latest', 'macos-15-intel ']
207229 env :
208230 ANDROID_HOME : ${HOME}/.android
209231 ANDROID_SDK_ROOT : ${HOME}/.android/android-sdk
@@ -212,16 +234,16 @@ jobs:
212234 REBUILD_UPDATED_RECIPES_EXTRA_ARGS : --arch=${{ matrix.android_arch }}
213235 steps :
214236 - name : Checkout python-for-android (all-history)
215- uses : actions/checkout@v4
237+ uses : actions/checkout@v5
216238 with :
217239 fetch-depth : 0
218240 - name : Set up Python 3.x
219- uses : actions/setup-python@v5
241+ uses : actions/setup-python@v6
220242 with :
221243 python-version : 3.x
222244 - name : Install python-for-android
223245 run : |
224- python3 -m pip install -e .
246+ python3 -m pip install --editable .
225247 - name : Install prerequisites via pythonforandroid/prerequisites.py (Experimental)
226248 run : |
227249 python3 pythonforandroid/prerequisites.py
@@ -244,7 +266,7 @@ jobs:
244266 documentation :
245267 runs-on : ubuntu-latest
246268 steps :
247- - uses : actions/checkout@v4
269+ - uses : actions/checkout@v5
248270 - name : Requirements
249271 run : |
250272 python -m pip install --upgrade pip
0 commit comments