43 lines
1.2 KiB
INI
43 lines
1.2 KiB
INI
[tox]
|
|
minversion = 3.5
|
|
envlist = py36,py37 # ,pylint,mypy
|
|
skip_missing_interpreters = True
|
|
|
|
# TODO ugh. unclear how to reuse setup.cfg deps in tox
|
|
[testenv]
|
|
passenv = CI CI_* CIRCLE*
|
|
changedir = {toxworkdir}/{envname}
|
|
commands =
|
|
# pip install -e .[testing]
|
|
# TODO ??
|
|
# python -m pytest {posargs}
|
|
python3 -c 'import my; print(my.__path__)'
|
|
python3 -c 'import my; import mycfg.repos' # shouldn't fail at least
|
|
# TODO run demo.py? just make sure with_my is a bit cleverer?
|
|
# TODO e.g. under CI, rely on installing
|
|
|
|
|
|
[testenv:demo]
|
|
# TODO wtf????
|
|
changedir = {toxworkdir}/{envname}/../..
|
|
# TODO not sure?? also reuse installed my. instead on installing in demo.py?
|
|
skip_install = true
|
|
# TODO need to keep full mycfg.py as example? to dummy run CI
|
|
commands = ./demo.py
|
|
|
|
|
|
# [testenv:mypy]
|
|
# skip_install = true
|
|
# commands =
|
|
# pip install -e .[testing]
|
|
# python -m mypy --check-untyped src/cachew
|
|
|
|
|
|
[testenv:pylint]
|
|
# TODO wtf????
|
|
changedir = {toxworkdir}/{envname}/../..
|
|
skip_install = true
|
|
commands =
|
|
pip install -e .[testing]
|
|
# for now ignore import errors until I figure out how to import everything for CI checking..
|
|
python -m pylint -E -d import-error my
|