forked from galaxyproject/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
49 lines (42 loc) · 1.25 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
[tox]
envlist = lint, docs, dist, test-unit, test, install_wheel, install_wheel-no_conda
toxworkdir={env:TOX_WORK_DIR:.tox}
source_dir = pulsar
test_dir = test
[testenv]
commands =
test-!unit: pytest -v -m {env:PYTEST_MARK:""} {posargs}
test-unit: pytest -v -m {env:PYTEST_MARK:""} --ignore-glob='*integration*.py' {posargs}
lint: flake8 --ignore W504 {[tox]source_dir} {[tox]test_dir}
dist: make lint-dist
docs: make lint-docs
install_wheel-!no_conda: make test-install-wheel
install_wheel-no_conda: make test-install-wheel-no-conda
mypy: mypy {[tox]source_dir} {[tox]test_dir}
deps =
test,docs,mypy: -rrequirements.txt
test,install_wheel,mypy: -rdev-requirements.txt
test: drmaa
lint: flake8
docs: sphinx==1.2
dist: twine
install_wheel: virtualenv
setenv =
# tests ready to go after setup_tests.sh
ci: PYTEST_MARK="not test_requires_tes and not test_requires_kubernetes"
funnel: PYTEST_MARK="test_requires_tes"
kubernetes: PYTEST_MARK="test_requires_kubernetes"
passenv =
PULSAR_*
FUNNEL_*
GO*
GIT*
HOME
USER
DRMAA_LIBRARY_PATH
skip_install =
lint,dist,install_wheel: True
skipsdist =
docs: True
allowlist_externals =
docs,dist,install_wheel: make