tests: run all tests, but exclude tests specific to my computer from CI

controllable via HPI_TESTS_KARLICOSS=true
This commit is contained in:
Dima Gerasimov 2021-02-14 17:31:44 +00:00 committed by karlicoss
parent 6239879245
commit d562f00dca
21 changed files with 93 additions and 72 deletions

21
tox.ini
View file

@ -8,6 +8,8 @@ passenv = CI CI_*
# deliberately set to nonexistent path to check the fallback logic
setenv = MY_CONFIG = nonexistent
commands =
# TODO core & modules should be tested separately?
pip install -e .[testing]
# python -m pytest {posargs}
@ -23,19 +25,12 @@ commands =
# my.body.weight dep
pip install orgparse
python3 -m pytest \
tests/cli.py \
tests/core.py \
tests/misc.py \
tests/get_files.py \
tests/config.py::test_environment_variable \
tests/demo.py \
tests/bluemaestro.py \
tests/location.py \
tests/tz.py \
tests/calendar.py \
tests/config.py \
{posargs}
python3 -m pytest tests \
# ignore some tests which might take a while to run on ci..
--ignore tests/takeout.py \
--ignore tests/extra/polar.py \
--ignore tests/pdfs/test_pdfs.py \
{posargs}
[testenv:demo]