-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #190 from biolab/maintenance
maintenance, tox, github actions
- Loading branch information
Showing
11 changed files
with
172 additions
and
134 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,94 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
continue-on-error: ${{ matrix.experimental }} | ||
timeout-minutes: 15 | ||
name: ${{ matrix.name }} (${{ matrix.os }}, ${{ matrix.python-version }}) | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-18.04, macos-10.15, windows-2016] | ||
python-version: [3.7, 3.8] | ||
tox_env: [py-orange-released] | ||
experimental: [false] | ||
name: [Released] | ||
include: | ||
- os: windows-2019 | ||
python-version: 3.8 | ||
tox_env: py-orange-released | ||
experimental: true | ||
name: Windows10 | ||
- os: macos-11.0 | ||
python-version: 3.8 | ||
tox_env: py-orange-released | ||
experimental: true | ||
name: Big Sur | ||
|
||
- os: windows-2016 | ||
python-version: 3.7 | ||
tox_env: py-orange-oldest | ||
experimental: false | ||
name: Oldest | ||
- os: macos-10.15 | ||
python-version: 3.7 | ||
tox_env: py-orange-oldest | ||
name: Oldest | ||
experimental: false | ||
- os: ubuntu-18.04 | ||
python-version: 3.7 | ||
tox_env: py-orange-oldest | ||
name: Oldest | ||
experimental: false | ||
|
||
- os: windows-2016 | ||
python-version: 3.8 | ||
tox_env: py-orange-latest | ||
experimental: false | ||
name: Latest | ||
- os: macos-10.15 | ||
python-version: 3.8 | ||
tox_env: py-orange-latest | ||
experimental: false | ||
name: Latest | ||
- os: ubuntu-18.04 | ||
python-version: 3.8 | ||
tox_env: py-orange-latest | ||
experimental: false | ||
name: Latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade tox tox-pip-version | ||
- name: Test with Tox | ||
run: | | ||
tox -e ${{ matrix.tox_env }} | ||
env: | ||
QT_QPA_PLATFORM: offscreen | ||
|
||
- name: Upload code coverage | ||
if: | | ||
matrix.python-version == '3.8' && | ||
matrix.os == 'ubuntu-18.04' && | ||
matrix.tox_env == 'py-orange-released' | ||
run: | | ||
pip install codecov | ||
codecov |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,4 @@ | ||
recursive-include doc Makefile *.bat *.json *.md *.png *.py *.rst | ||
recursive-include orangecontrib/imageanalytics *.svg *.png *.jpg | ||
|
||
include requirements.txt | ||
include README.md | ||
include LICENSE.txt | ||
include about.md | ||
include *.py *.txt | ||
include *.py *.txt *.pypi *.md *.yml *.ini .coveragerc |
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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[build-system] | ||
requires = ["setuptools", "wheel"] | ||
build-backend = "setuptools.build_meta" |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[tox] | ||
envlist = | ||
py{37,38}-orange-{oldest, latest, released} | ||
skip_missing_interpreters = true | ||
isolated_build = true | ||
toxworkdir={env:TOX_WORK_DIR:.tox} | ||
|
||
[testenv] | ||
# must use latest pip (version 20.3.1 enables Big Sur support - https://github.com/pypa/pip/issues/9138) | ||
pip_version = pip | ||
extras = test | ||
passenv = * | ||
# we MUST changedir to avoid installed being shadowed by working dir | ||
# https://github.com/tox-dev/tox/issues/54 | ||
# https://github.com/tox-dev/tox/issues/514 | ||
changedir = | ||
{envsitepackagesdir} | ||
setenv = | ||
# Raise deprecations as errors in our tests | ||
ORANGE_DEPRECATIONS_ERROR=y | ||
# Need this otherwise unittest installs a warning filter that overrides | ||
# our desire to have OrangeDeprecationWarnings raised | ||
PYTHONWARNINGS=module | ||
# set coverage output and project config | ||
COVERAGE_FILE = {toxinidir}/.coverage | ||
COVERAGE_RCFILE = {toxinidir}/.coveragerc | ||
deps = | ||
pyqt5==5.12.* | ||
pyqtwebengine==5.12.* | ||
oldest: scikit-learn~=0.22.0 | ||
oldest: orange3==3.25.0 | ||
# Use newer canvas-core and widget-base to avoid segfaults on windows | ||
oldest: orange-canvas-core==0.1.9 ; sys_platform != 'win32' | ||
oldest: orange-canvas-core==0.1.15 ; sys_platform == 'win32' | ||
oldest: orange-widget-base==4.5.0 ; sys_platform != 'win32' | ||
oldest: orange-widget-base==4.9.0 ; sys_platform == 'win32' | ||
latest: git+git://github.com/biolab/orange3.git#egg=orange3 | ||
latest: git+git://github.com/biolab/orange-canvas-core.git#egg=orange-canvas-core | ||
latest: git+git://github.com/biolab/orange-widget-base.git#egg=orange-widget-base | ||
commands_pre = | ||
# Verify installed packages have compatible dependencies | ||
pip check | ||
# freeze environment | ||
pip freeze | ||
commands = | ||
coverage run -m unittest discover -v --start-directory orangecontrib/imageanalytics | ||
coverage report |