2021-10-26 12:58:36 +02:00
|
|
|
[tox]
|
2023-07-01 11:54:39 +02:00
|
|
|
envlist=py{37,38,39,310,311,312}{,-arduino,-metrics},lint,check-docs
|
2021-10-26 12:58:36 +02:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
extras =
|
|
|
|
arduino: arduino
|
|
|
|
dev
|
|
|
|
metrics: metrics
|
|
|
|
whitelist_externals = make
|
|
|
|
commands = make test
|
|
|
|
; Fix coverage not working because tox doesn't install
|
|
|
|
; sources to the working dir by default.
|
|
|
|
usedevelop = True
|
|
|
|
|
2023-07-01 11:54:39 +02:00
|
|
|
[gh-actions]
|
|
|
|
python =
|
|
|
|
3.7: py37
|
|
|
|
3.8: py38
|
|
|
|
3.9: py39
|
|
|
|
3.10: py310
|
|
|
|
3.11: py311
|
|
|
|
3.12: py312
|
|
|
|
|
2021-10-26 12:58:36 +02:00
|
|
|
[testenv:lint]
|
|
|
|
extras =
|
|
|
|
arduino
|
|
|
|
dev
|
|
|
|
metrics
|
|
|
|
basepython = python3
|
|
|
|
; Use `pip install -e .` so isort would treat imports from this package
|
|
|
|
; as first party imports instead of third party:
|
|
|
|
usedevelop = True
|
|
|
|
commands = make lint
|
|
|
|
|
|
|
|
[testenv:check-docs]
|
|
|
|
basepython = python3
|
|
|
|
commands = make check-docs
|