-
Notifications
You must be signed in to change notification settings - Fork 85
/
tox.ini
78 lines (72 loc) · 3.08 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[tox]
envlist = py{37}-lint, py37-mypy, py37-unit-quick, py37-lint_docstrings, py37-lint_docs, py{37}-unit, py37-gxwf_test_test
source_dir = planemo
test_dir = tests
[testenv]
commands =
lint: flake8
lint: black --check --diff .
lint: isort --check --diff .
lint_docs: make lint-docs
lint_docstrings: flake8 --ignore='D107,D401,D105' {[tox]source_dir}
unit: pytest {env:PYTEST_FAIL_FAIL:} {env:PYTEST_CAPTURE:} -m {env:PYTEST_MARK:""} {env:PYTEST_TARGET:{[tox]test_dir}} {posargs}
mypy: mypy --install-types --non-interactive {[tox]source_dir} tests/ {posargs}
gxwf_test_test: make setup-venv gxwf-test-test
passenv =
PLANEMO_*
PG*
HOME
DOCS
GIT_*
deps =
lint,lint_docstrings: flake8
lint: black
lint: isort
lint_docs: -rdev-requirements.txt
lint_docs,quick,unit: -rrequirements.txt
lint_docstrings: flake8_docstrings
unit: pytest
# unit: pytest-timeout
unit: coverage
unit: flask
mypy: mypy
setenv =
gx: PYTEST_MARK="tests_galaxy_branch"
nogx: PYTEST_MARK="not tests_galaxy_branch"
diagnostic: PLANEMO_TEST_VERBOSE=1
diagnostic: PYTEST_CAPTURE="--capture=no"
failfast: PYTEST_FAIL_FAIL="-x"
servecmd: PYTEST_TARGET="tests/test_cmd_serve.py::ServeTestCase::test_serve_daemon"
serveshedcmd: PYTEST_TARGET="tests/test_cmd_serve.py::ServeTestCase::test_shed_serve"
serveclientcmd: PYTEST_TARGET="tests/test_cmd_serve.py::ServeTestCase::test_serve_client_python3"
servebasic: PYTEST_TARGET="tests/test_galaxy_serve.py::GalaxyServeTestCase::test_serve_daemon"
serveshed: PYTEST_TARGET="tests/test_galaxy_serve.py::GalaxyServeTestCase::test_shed_serve_daemon"
servewkfl: PYTEST_TARGET="tests/test_galaxy_serve.py::GalaxyServeTestCase::test_serve_workflow"
servetraining: PYTEST_TARGET="tests/test_training_tutorial.py::test_get_hands_on_boxes_from_local_galaxy"
initandtest: PYTEST_TARGET="tests/test_init_and_test.py"
trainingwfcmd: PYTEST_TARGET="tests/test_cmd_training_generate_from_wf.py"
runcmd: PYTEST_TARGET="tests/test_run.py::RunTestCase::test_run_gxtool_randomlines"
wftest: PYTEST_TARGET="tests/test_test_engines.py::test_galaxy_wf_tests"
wfidtest: PYTEST_TARGET="tests/test_cmds_with_workflow_id.py"
condatest: PYTEST_TARGET="tests/test_cmd_test_conda.py::CmdTestCondaTestCase::test_conda_dependencies_by_default"
nonredundant: PLANEMO_SKIP_REDUNDANT_TESTS=1
noclientbuild: PLANEMO_SKIP_GALAXY_CLIENT_TESTS=1
noshed: PLANEMO_SKIP_SHED_TESTS=1
quick: PLANEMO_SKIP_SLOW_TESTS=1
quick: PLANEMO_SKIP_GALAXY_TESTS=1
master: PLANEMO_TEST_GALAXY_BRANCH=master
dev: PLANEMO_TEST_GALAXY_BRANCH=dev
2109: PLANEMO_TEST_GALAXY_BRANCH=release_21.09
2101: PLANEMO_TEST_GALAXY_BRANCH=release_21.01
2205: PLANEMO_TEST_GALAXY_BRANCH=release_22.05
lint_docs: VENV={env:VIRTUAL_ENV}
skip_install =
doc_test,lint,lint_docs,lint_docstrings,mypy,gxwf_test_test: True
allowlist_externals =
lint_docs: make
gxwf_test_test: make
[testenv:doc_test]
commands = bash scripts/run_doc_test.sh
skipsdist = True
allowlist_externals = bash
deps =