Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
86 changed files
with
1,493 additions
and
459 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# used by coveralls.io, refs: | ||
# https://coveralls-python.readthedocs.io/en/latest/usage/tox.html#travisci | ||
CI | ||
TRAVIS | ||
TRAVIS_BRANCH | ||
TRAVIS_JOB_ID | ||
TRAVIS_PULL_REQUEST |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
name: Unit tests & Build Testapp | ||
|
||
on: ['push', 'pull_request'] | ||
|
||
jobs: | ||
|
||
flake8: | ||
name: Flake8 tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout python-for-android | ||
uses: actions/checkout@v2 | ||
- name: Set up Python 3.7 | ||
uses: actions/setup-python@v1.1.0 | ||
with: | ||
python-version: 3.7 | ||
- name: Run flake8 | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox>=2.0 | ||
tox -e pep8 | ||
test: | ||
name: Pytest [Python ${{ matrix.python-version }} | ${{ matrix.os }}] | ||
needs: flake8 | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
python-version: [3.6, 3.7] | ||
os: [ubuntu-latest, macOs-latest] | ||
steps: | ||
- name: Checkout python-for-android | ||
uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1.1.0 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Tox tests | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install tox>=2.0 | ||
make test | ||
build: | ||
name: Build testapp | ||
needs: [flake8] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
build-arch: ['arm64-v8a', 'armeabi-v7a'] | ||
steps: | ||
- name: Checkout python-for-android | ||
uses: actions/checkout@v2 | ||
- name: Pull docker image | ||
run: | | ||
make docker/pull | ||
- name: Build apk for Python 3 ${{ matrix.build-arch }} | ||
run: | | ||
mkdir -p apks | ||
make docker/run/make/with-artifact/testapps/python3/${{ matrix.build-arch }} | ||
- uses: actions/upload-artifact@v1 | ||
with: | ||
name: bdisttest_python3_sqlite_openssl_googlendk__${{ matrix.build-arch }}-debug-1.1.apk | ||
path: apks | ||
|
||
rebuild_updated_recipes: | ||
name: Test updated recipes | ||
needs: [flake8] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout python-for-android (current branch) | ||
uses: actions/checkout@v2 | ||
- name: Checkout python-for-android (develop branch) | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: 'develop' | ||
- name: Pull docker image | ||
run: | | ||
make docker/pull | ||
- name: Rebuild updated recipes | ||
run: | | ||
make docker/run/make/rebuild_updated_recipes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.