[tox]
envlist = py3, mypy
skipsdist = true
+requires = cython
[testenv]
-setenv = UNITTEST = true
-deps = -r requirements.txt
-commands = pytest -v --cov --cov-append --cov-report=term --doctest-modules {posargs:mgr_util.py tests/ cephadm/ pg_autoscaler/ progress/}
+setenv =
+ UNITTEST = true
+ PYTHONPATH = ../../../build/lib/cython_modules/lib.3/
+ LD_LIBRARY_PATH = ../../../build/lib
+deps =
+ cython
+ -rrequirements.txt
+commands =
+ pytest -v --cov --cov-append --cov-report= --doctest-modules {posargs: \
+ mgr_util.py \
+ tests/ \
+ cephadm/ \
+ orchestrator/ \
+ pg_autoscaler/ \
+ progress/}
[testenv:mypy]
basepython = python3
deps =
- -r requirements.txt
+ cython
+ -rrequirements.txt
mypy==0.770
commands = mypy --config-file=../../mypy.ini \
cephadm/module.py \