Update dependency pbxproj to v4 #1077
This file contains hidden or 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: kivy-ios | |
| on: [push, pull_request] | |
| jobs: | |
| flake8: | |
| name: Flake8 tests | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout kivy-ios | |
| uses: actions/checkout@v7 | |
| - name: Set up Python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: 3.x | |
| - name: Run flake8 | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install tox>=2.0 | |
| tox -e pep8 | |
| # Unit tests for the Python side of kivy-ios (e.g. tools/external/xcassets.py). | |
| # Runs on Ubuntu on purpose: it's cheap/fast and the absence of macOS binaries | |
| # like `sips` forces tests to be hermetic (proper mocking). macOS integration | |
| # coverage stays in the build_python3_kivy* jobs below. | |
| unit_tests: | |
| name: Unit tests (Ubuntu) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout kivy-ios | |
| uses: actions/checkout@v7 | |
| - name: Set up Python 3.x | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: '3.x' | |
| - name: Install kivy-ios and test dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| pip install pytest pytest-cov | |
| - name: Run pytest with coverage | |
| run: | | |
| pytest tests/tools -v --cov=kivy_ios --cov-report=term-missing --cov-report=xml | |
| build_python3_kivy: | |
| runs-on: ${{ matrix.runs_on }} | |
| strategy: | |
| matrix: | |
| # macos-latest (ATM macos-15) runs on Apple Silicon, | |
| # macos-15-intel runs on Intel | |
| runs_on: ['macos-latest', 'macos-15-intel'] | |
| steps: | |
| - name: Checkout kivy-ios | |
| uses: actions/checkout@v7 | |
| - name: Set up Python 3.x | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: '3.x' | |
| - name: Install requirements | |
| run: | | |
| brew install libjpeg | |
| pip3 install wheel | |
| brew install autoconf automake libtool pkg-config | |
| brew link libtool | |
| pip3 install Cython==0.29.36 | |
| sudo gem install xcpretty | |
| - name: Install kivy-ios | |
| run: | | |
| pip install . | |
| - name: Build Python & Kivy | |
| run: | | |
| toolchain build python3 kivy | |
| - name: Checkout kivy for tests apps | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: kivy/kivy | |
| path: kivy-ci-clone | |
| - name: Create & Build test project | |
| run: | | |
| .ci/test_project.sh | |
| build_python3_kivy_venv: | |
| runs-on: ${{ matrix.runs_on }} | |
| strategy: | |
| matrix: | |
| # macos-latest (ATM macos-15) runs on Apple Silicon, | |
| # macos-15-intel runs on Intel | |
| runs_on: ['macos-latest', 'macos-15-intel'] | |
| steps: | |
| - name: Checkout kivy-ios | |
| uses: actions/checkout@v7 | |
| - name: Set up Python 3.x | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: '3.x' | |
| - name: Install requirements | |
| run: | | |
| python -m venv venv | |
| . venv/bin/activate | |
| brew install libjpeg | |
| pip install wheel | |
| pip install sh | |
| brew install autoconf automake libtool pkg-config | |
| brew link libtool | |
| pip install Cython==0.29.36 | |
| sudo gem install xcpretty | |
| - name: Install kivy-ios | |
| run: | | |
| pip install . | |
| - name: Build Python & Kivy | |
| run: | | |
| . venv/bin/activate | |
| toolchain build python3 kivy | |
| - name: Checkout kivy for tests apps | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: kivy/kivy | |
| path: kivy-ci-clone | |
| - name: Create & Build test project | |
| run: | | |
| . venv/bin/activate | |
| .ci/test_project.sh | |
| build_updated_recipes: | |
| needs: flake8 | |
| runs-on: ${{ matrix.runs_on }} | |
| strategy: | |
| matrix: | |
| # macos-latest (ATM macos-15) runs on Apple Silicon, | |
| # macos-15-intel runs on Intel | |
| runs_on: ['macos-latest', 'macos-15-intel'] | |
| steps: | |
| - name: Checkout kivy-ios (all-history) | |
| uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python 3.x | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: '3.x' | |
| - name: Install requirements | |
| run: | | |
| brew install libjpeg | |
| pip3 install wheel | |
| brew install autoconf automake libtool pkg-config | |
| brew link libtool | |
| pip3 install Cython==0.29.36 | |
| - name: Install kivy-ios | |
| run: | | |
| pip install . | |
| - name: Build updated recipes | |
| run: | | |
| python3 .ci/rebuild_updated_recipes.py |