-
-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'beeware:main' into date-input-toga-web
- Loading branch information
Showing
722 changed files
with
8,567 additions
and
4,334 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 |
---|---|---|
|
@@ -91,9 +91,8 @@ jobs: | |
# The $(ls ...) shell expansion is done in the Github environment; | ||
# the value of TOGA_INSTALL_COMMAND will be a literal string, | ||
# without any shell expansions to perform | ||
TOGA_INSTALL_COMMAND="python -m pip install ../$(ls core/dist/toga_core-*.whl)[dev] ../$(ls dummy/dist/toga_dummy-*.whl)" tox -e py-core | ||
cd core | ||
mv .coverage .coverage.${{ matrix.platform }}.${{ matrix.python-version }} | ||
TOGA_INSTALL_COMMAND="python -m pip install ../$(ls core/dist/toga_core-*.whl)[dev] ../$(ls dummy/dist/toga_dummy-*.whl)" tox -e py | ||
mv core/.coverage core/.coverage.${{ matrix.platform }}.${{ matrix.python-version }} | ||
- name: Store coverage data | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -128,64 +127,14 @@ jobs: | |
cd core | ||
python -m coverage combine | ||
python -m coverage html --skip-covered --skip-empty | ||
python -m coverage report --rcfile ../pyproject.toml # --fail-under=100 | ||
python -m coverage report --rcfile ../pyproject.toml --fail-under=100 | ||
- name: Upload HTML report if check failed. | ||
uses: actions/[email protected] | ||
with: | ||
name: html-coverage-report | ||
path: core/htmlcov | ||
if: ${{ failure() }} | ||
|
||
backend: | ||
runs-on: ${{ matrix.runs-on }} | ||
needs: [package, core] | ||
strategy: | ||
matrix: | ||
backend: [ "android", "cocoa", "gtk", "iOS", "web", "winforms" ] | ||
include: | ||
- runs-on: ubuntu-latest | ||
- python-version: "3.8" # Should be env.min_python_version (https://github.com/actions/runner/issues/480) | ||
- pre-command: | ||
|
||
- backend: cocoa | ||
runs-on: macos-latest | ||
|
||
- backend: gtk | ||
pre-command: | | ||
sudo apt update -y | ||
sudo apt install -y pkg-config python3-dev libgirepository1.0-dev libcairo2-dev gir1.2-gtk-3.0 | ||
- backend: iOS | ||
runs-on: macos-latest | ||
|
||
- backend: winforms | ||
runs-on: windows-latest | ||
# Py3.9 is the first Python version for which | ||
# a wheel of pythonnet isn't available on PyPI. | ||
python-version: "3.9" | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Get packages | ||
uses: actions/[email protected] | ||
with: | ||
name: ${{ needs.package.outputs.artifact-name }} | ||
- name: Install dev dependencies | ||
run: | | ||
${{ matrix.pre-command }} | ||
# We don't actually want to install toga-core; | ||
# we just want the dev extras so we have a known version of tox | ||
python -m pip install ./core[dev] | ||
- name: Test | ||
run: | | ||
# The $(ls ...) shell expansion is done in the Github environment; | ||
# the value of TOGA_INSTALL_COMMAND will be a literal string, | ||
# without any shell expansions to perform | ||
TOGA_INSTALL_COMMAND="python -m pip install ../$(ls core/dist/toga_core-*.whl)[dev] ../$(ls dummy/dist/toga_dummy-*.whl) ../$(ls ${{ matrix.backend }}/dist/toga_${{ matrix.backend }}-*.whl)" tox -e py-${{ matrix.backend }} | ||
testbed: | ||
runs-on: ${{ matrix.runs-on }} | ||
needs: core | ||
|
@@ -288,3 +237,11 @@ jobs: | |
with: | ||
name: testbed-failure-app-data-${{ matrix.backend }} | ||
path: testbed/app_data/* | ||
# This step is only needed if you're trying to diagnose test failures that | ||
# only occur in CI, and can't be reproduced locally. When it runs, it will | ||
# open an SSH server (URL reported in the logs) so you can ssh into the CI | ||
# machine. | ||
# - uses: actions/checkout@v3 | ||
# - name: Setup tmate session | ||
# uses: mxschmitt/action-tmate@v3 | ||
# if: failure() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
coverage.xml | ||
dist | ||
build | ||
logs | ||
_build | ||
distribute-* | ||
docs/env | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ author_email = [email protected] | |
maintainer = BeeWare Team | ||
maintainer_email = [email protected] | ||
classifiers = | ||
Development Status :: 3 - Alpha | ||
Development Status :: 4 - Beta | ||
Intended Audience :: Developers | ||
License :: OSI Approved :: BSD License | ||
Operating System :: OS Independent | ||
|
Oops, something went wrong.