summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorChristoph Berg <christoph.berg@credativ.de>2022-11-08 11:40:45 +0100
committerChristoph Berg <christoph.berg@credativ.de>2022-11-08 11:40:45 +0100
commit42b1373eff59af2aebb218ded3d2d55cc96dc630 (patch)
treed6e7e435fa41c65fff7a73dd7dc99bb4a12da5c8 /tox.ini
parent176c8e29d64892072697c5d30513204773545a9b (diff)
parent6f19923a918f7fb63a444b0c99950fdbe9d2f74c (diff)
Update upstream source from tag 'upstream/20221106+py3'
Update to upstream version '20221106+py3' with Debian dir b54298e303932808cc08745c5f5133ad7b12628e
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini34
1 files changed, 27 insertions, 7 deletions
diff --git a/tox.ini b/tox.ini
index 32f367e..dc44ec8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,7 +5,7 @@ skipsdist = True
[testenv]
basepython = python2.7
sitepackages = True
-passenv = HOME
+passenv = HOME CHIRP_TESTS CHIRP_TESTIMG
whitelist_externals = bash
deps = future
@@ -29,11 +29,15 @@ commands =
pytest --disable-warnings -v tests/test_drivers.py {posargs}
[testenv:style]
+basepython = python3
+sitepackages = False
deps =
- pep8==1.6.2
+ pep8
future
+ flake8
commands =
- python ./tools/cpep8.py
+ python3 ./tools/cpep8.py
+ flake8 --builtins="_" chirp/wxui
[textenv:py3clean]
commands =
@@ -45,10 +49,9 @@ sitepackages = False
setenv =
PYTHONPATH=../..
deps =
- -rrequirements.txt
-rtest-requirements.txt
commands =
- pytest --disable-warnings -v tests/unit {posargs}
+ pytest --disable-warnings --html=unit_report.html -v tests/unit {posargs}
[testenv:py3driver]
basepython = python3
@@ -56,6 +59,23 @@ sitepackages = False
setenv =
PYTHONPATH=../..
CHIRP_DEBUG=y
-deps = {[testenv:py3unit]deps}
+deps =
+ {[testenv:py3unit]deps}
+ pytest-xdist
commands =
- pytest --disable-warnings -v tests/test_drivers.py {posargs}
+ pytest --disable-warnings --html=driver_report.html -v tests/test_drivers.py -n auto {posargs}
+
+[pytest]
+xfail_strict = true
+
+[testenv:makesupported]
+basepython = python3
+sitepackages = False
+whitelist_externals = git
+deps =
+ -rtest-requirements.txt
+commands =
+ python3 share/make_supported.py model_support.html
+ python3 setup.py develop
+ python3 tools/py3_driver_progress.py -o tests/Python3_Driver_Testing.md tests/py3_driver_testers.txt
+ git diff --exit-code tests/Python3_Driver_Testing.md