-
Notifications
You must be signed in to change notification settings - Fork 25
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 #379 from biolab/gh_actions
ci: setup github actions and tox
- Loading branch information
Showing
9 changed files
with
102 additions
and
134 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: main | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 30 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
tox_env: [py37, py38] | ||
include: | ||
- tox_env: py37 | ||
python: 3.7 | ||
- tox_env: py38 | ||
python: 3.8 | ||
|
||
# add additional jobs for future compatibility test | ||
- tox_env: py38-orange-develop | ||
python: 3.8 | ||
os: ubuntu-latest | ||
- tox_env: py38-bioinformatics-develop | ||
python: 3.8 | ||
os: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install Tox | ||
run: python -m pip install tox | ||
- name: Set env | ||
run: echo ::set-env name=QT_QPA_PLATFORM::offscreen | ||
if: ${{ matrix.os == 'ubuntu-latest' }} | ||
- name: Run Tox | ||
run: python -m tox -e ${{ matrix.tox_env }} |
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
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
[build-system] | ||
requires = [ | ||
# sync with setup.py until we discard non-pep-517/518 | ||
"setuptools-scm>=3.3.3", | ||
"setuptools>=41.2.0", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
requires = ["setuptools", "setuptools-scm", "wheel"] |
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,34 @@ | ||
[tox] | ||
envlist = | ||
py{37,38,39}-{orange,bioinformatics}-develop | ||
skip_missing_interpreters = true | ||
isolated_build = true | ||
minversion = 3.6.0 | ||
|
||
[testenv] | ||
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 | ||
deps = | ||
pyqt5 | ||
pyqtwebengine | ||
orange-develop: git+git://github.com/biolab/orange3.git#egg=orange3 | ||
bioinformatics-develop: git+git://github.com/biolab/orange3-bioinformatics.git#egg=orange3-bioinformatics | ||
commands_pre = | ||
# Verify installed packages have compatible dependencies | ||
pip check | ||
# freeze environment | ||
pip freeze | ||
commands = | ||
python -m pytest orangecontrib/single_cell/tests -l | ||
|