my.bluemaestro: run against testdata, add on CI

This commit is contained in:
Dima Gerasimov 2020-10-03 20:05:21 +01:00 committed by karlicoss
parent e63c159b80
commit 6242307d7a
7 changed files with 49 additions and 20 deletions

10
tox.ini
View file

@ -13,7 +13,14 @@ commands =
# todo these are probably not necessary anymore?
python3 -c 'from my.config import stub as config; print(config.key)'
python3 -c 'import my.config; import my.config.repos' # shouldn't fail at least
python3 -m pytest tests/core.py tests/misc.py tests/get_files.py tests/config.py::test_set_repo tests/config.py::test_environment_variable tests/demo.py
python3 -m pytest \
tests/core.py \
tests/misc.py \
tests/get_files.py \
tests/config.py::test_set_repo \
tests/config.py::test_environment_variable \
tests/demo.py \
tests/bluemaestro.py
# TODO add; once I figure out porg depdencency?? tests/config.py
# TODO run demo.py? just make sure with_my is a bit cleverer?
# TODO e.g. under CI, rely on installing
@ -49,6 +56,7 @@ commands =
-p my.endomondo \
-p my.body.exercise.cardio \
-p my.body.exercise.cross_trainer \
-p my.bluemaestro \
--txt-report .mypy-coverage \
--html-report .mypy-coverage \
{posargs}