update tox to run unit tests

This commit is contained in:
Jack Robison 2022-03-26 15:19:13 -04:00
parent fa611addc4
commit 1f80cc90b3
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

12
tox.ini
View file

@ -2,18 +2,14 @@
envlist = py37,py38,py39 envlist = py37,py38,py39
minversion = 3.7 minversion = 3.7
skipsdist = True skipsdist = True
skip_missing_interpreters = true
[testenv] [testenv]
skip_install = True skip_install = True
deps = deps = -e .
-e commands = python -m unittest discover . -v
.[test] norecursedirs = .tox
commands = pytest {posargs:rocksdb/tests}
[testenv:docs] [testenv:docs]
deps = .[doc] deps = .[doc]
commands = python setup.py build_sphinx -W commands = python setup.py build_sphinx -W
[pytest]
addopts = --verbose
norecursedirs = .tox