ziptools.py: add unencrypted_chunks() & passwd_cb, fix pk_decrypt() F… #290
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
name: CI | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python-version: | |
- '3.8' | |
- '3.9' | |
- '3.10' | |
- '3.11' | |
- '3.12' | |
- '3.13' | |
# - '3.14.0-alpha - 3.14' | |
- pypy3.8 | |
- pypy3.9 | |
- pypy3.10 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
submodules: true | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y aapt dos2unix zipalign | |
python3 -m pip install --upgrade pip | |
python3 -m pip install flake8 pylint mypy coverage | |
- name: Install | |
run: make install | |
- name: Test | |
run: make test | |
- name: Test examples | |
run: make test-examples | |
- name: Test coverage | |
run: make coverage | |
- name: Download build-tools | |
run: | | |
set -x | |
wget -O build-tools.zip -- https://dl.google.com/android/repository/build-tools_r35_linux.zip | |
sha256sum -c <<< 'bd3a4966912eb8b30ed0d00b0cda6b6543b949d5ffe00bea54c04c81e1561d88 build-tools.zip' | |
unzip -q build-tools.zip | |
mv android-15 build-tools | |
- name: Test (build-tools) | |
run: | | |
export PATH="${PWD}/build-tools:${PATH}" | |
test "$( command -v zipalign )" = "${PWD}/build-tools/zipalign" | |
make test | |
- name: Test examples (build-tools) | |
run: | | |
export PATH="${PWD}/build-tools:${PATH}" | |
test "$( command -v zipalign )" = "${PWD}/build-tools/zipalign" | |
make test-examples |