File: tox.ini

package info (click to toggle)
chirp 1%3A20221106%2Bpy3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,144 kB
  • sloc: python: 119,334; ansic: 296; sh: 184; makefile: 41
file content (81 lines) | stat: -rw-r--r-- 1,678 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[tox]
envlist = unit,driver,style,py3clean,py3unit,py3driver
skipsdist = True

[testenv]
basepython = python2.7
sitepackages = True
passenv = HOME CHIRP_TESTS CHIRP_TESTIMG
whitelist_externals = bash
deps = future

[testenv:unit]
deps =
    pytest
    mox
    mock
    future
    pytest-xdist
commands =
    pytest --disable-warnings -v tests/unit {posargs}
    python ./share/make_supported.py /dev/null

[testenv:driver]
deps =
    future
    pytest
    pytest-xdist
commands =
    pytest --disable-warnings -v tests/test_drivers.py {posargs}

[testenv:style]
basepython = python3
sitepackages = False
deps =
    pep8
    future
    flake8
commands =
    python3 ./tools/cpep8.py
    flake8 --builtins="_" chirp/wxui

[textenv:py3clean]
commands =
    py3clean chirp tests

[testenv:py3unit]
basepython = python3
sitepackages = False
setenv =
    PYTHONPATH=../..
deps =
    -rtest-requirements.txt
commands =
    pytest --disable-warnings --html=unit_report.html -v tests/unit {posargs}

[testenv:py3driver]
basepython = python3
sitepackages = False
setenv =
    PYTHONPATH=../..
    CHIRP_DEBUG=y
deps =
    {[testenv:py3unit]deps}
    pytest-xdist
commands =
    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