Skip to content

Commit 898186c

Browse files
committed
ci: add android test
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
1 parent c7026d0 commit 898186c

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

.github/workflows/tests-cibw.yml

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,20 @@ jobs:
2222
submodules: true
2323
fetch-depth: 0
2424

25-
- uses: pypa/cibuildwheel@c90accef518b1dd0253bf43b639ce21f765d6794
25+
- uses: mhsmith/cibuildwheel@android
2626
env:
2727
PYODIDE_BUILD_EXPORTS: whole_archive
2828
with:
2929
package-dir: tests
3030
only: cp312-pyodide_wasm32
3131

3232
build-ios:
33-
name: iOS wheel
34-
runs-on: macos-latest
33+
name: iOS wheel ${{ matrix.runs-on }}
34+
runs-on: ${{ matrix.runs-on }}
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
runs-on: [macos-latest, macos-13]
3539
steps:
3640
- uses: actions/checkout@v4
3741
with:
@@ -40,8 +44,27 @@ jobs:
4044

4145
- run: brew upgrade cmake
4246

43-
- uses: pypa/cibuildwheel@c90accef518b1dd0253bf43b639ce21f765d6794
47+
- uses: mhsmith/cibuildwheel@android
4448
env:
4549
CIBW_PLATFORM: ios
4650
with:
4751
package-dir: tests
52+
53+
build-android:
54+
name: Android wheel ${{ matrix.runs-on }}
55+
runs-on: ${{ matrix.runs-on }}
56+
strategy:
57+
fail-fast: false
58+
matrix:
59+
runs-on: [macos-latest, macos-13, ubuntu-latest]
60+
steps:
61+
- uses: actions/checkout@v4
62+
with:
63+
submodules: true
64+
fetch-depth: 0
65+
66+
- uses: mhsmith/cibuildwheel@android
67+
env:
68+
CIBW_PLATFORM: android
69+
with:
70+
package-dir: tests

tests/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ pyodide.test-groups = ["numpy", "scipy"]
3333
ios.test-groups = ["numpy"]
3434
ios.xbuild-tools = ["cmake", "ninja"]
3535
ios.environment.PIP_EXTRA_INDEX_URL = "https://pypi.anaconda.org/beeware/simple"
36+
android.test-groups = ["numpy"]
37+
android.xbuild-tools = ["cmake", "ninja"]
38+
android.environment.PIP_EXTRA_INDEX_URL = "https://chaquo.com/pypi-13.1"

0 commit comments

Comments
 (0)