Generalize template for GUI framework plugins #183
Workflow file for this run
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: | |
pull_request: | |
push: | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
env: | |
FORCE_COLOR: "1" | |
jobs: | |
pre-commit: | |
name: Pre-commit checks | |
uses: beeware/.github/.github/workflows/pre-commit-run.yml@main | |
with: | |
pre-commit-source: -r requirements.txt | |
unit-tests: | |
name: Unit tests | |
needs: pre-commit | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.1 | |
- name: Set up Python | |
uses: actions/setup-python@v4.7.1 | |
with: | |
python-version: "3.X" | |
- name: Install Dependencies | |
run: python -m pip install -r requirements.txt | |
- name: Test with tox | |
run: tox | |
verify-templates: | |
name: Verify Templates | |
needs: unit-tests | |
# !!!!! TODO:PR: use real repo !!!!! | |
# uses: beeware/.github/.github/workflows/app-create-verify.yml@main | |
uses: rmartin16/.github-beeware/.github/workflows/app-create-verify.yml@create-new-project | |
with: | |
runner-os: ${{ matrix.runner-os }} | |
framework: ${{ matrix.framework }} | |
strategy: | |
fail-fast: false | |
matrix: | |
framework: [ "toga", "pyside6", "ppb", "pygame" ] | |
runner-os: [ "macos-latest", "ubuntu-22.04", "windows-latest" ] | |
verify-apps: | |
name: Build App | |
needs: unit-tests | |
# !!!!! TODO:PR: use real repo !!!!! | |
# uses: beeware/.github/.github/workflows/app-build-verify.yml@main | |
uses: rmartin16/.github-beeware/.github/workflows/app-build-verify.yml@create-new-project | |
with: | |
# This *must* be the version of Python that is the native system Python on | |
# ubuntu-22.04, which is needed to test local Debian packages. We use | |
# ubuntu-22.04 explicitly rather than ubuntu-latest because when | |
# ubuntu-latest upgrades to ubuntu-24.04, it will happen gradually, so the | |
# system Python version won't be predictable. | |
python-version: "3.10" | |
runner-os: ${{ matrix.runner-os }} | |
framework: ${{ matrix.framework }} | |
strategy: | |
fail-fast: false | |
matrix: | |
framework: [ "toga", "pyside6", "ppb", "pygame" ] | |
runner-os: [ "macos-latest", "ubuntu-22.04", "windows-latest" ] |