mirror of
https://github.com/ansible/awx.git
synced 2026-01-08 14:32:07 -03:30
* update to Python 3.12 * remove use of utcnow * switch to timezone.utc datetime.UTC is an alias of datetime.timezone.utc. if we're doing the double import for datetime it's more straightforward to just import timezone as well and get it directly * debug python env version issue * change python version * pin to SHA and remove debug portion
52 lines
884 B
INI
52 lines
884 B
INI
[tox]
|
|
distshare = {homedir}/.tox/distshare
|
|
envlist =
|
|
lint,
|
|
test
|
|
skip_missing_interpreters = true
|
|
# recreate = true
|
|
# skipsdist = true
|
|
|
|
[testenv]
|
|
basepython = python3.12
|
|
setenv =
|
|
PYTHONPATH = {toxinidir}:{env:PYTHONPATH:}:.
|
|
deps =
|
|
websocket-client
|
|
coverage
|
|
mock
|
|
pytest
|
|
pytest-mock
|
|
|
|
commands =
|
|
coverage run --parallel --source awxkit -m pytest --doctest-glob='*.md' --junit-xml=report.xml {posargs}
|
|
coverage combine
|
|
coverage xml
|
|
|
|
[testenv:lint]
|
|
deps =
|
|
{[testenv]deps}
|
|
flake8
|
|
commands =
|
|
flake8 awxkit
|
|
# pylama --report report.pylama awxkit
|
|
# py.test awxkit --pylama --junitxml=report.pylama {posargs}
|
|
- coverage erase
|
|
|
|
[testenv:coveralls]
|
|
commands=
|
|
- coverage combine
|
|
- coverage report -m
|
|
- coveralls
|
|
|
|
[flake8]
|
|
max-line-length = 120
|
|
|
|
[pytest]
|
|
addopts = -v --tb=native
|
|
|
|
filterwarnings =
|
|
error
|
|
|
|
junit_family=xunit2
|