Skip to content

Commit

Permalink
test: fix tox configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarolopez committed Mar 18, 2024
1 parent e592cae commit 36a63ec
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ envlist =
; mypy
pip-missing-reqs
pypi
skipsdist = True

[gh-actions]
python =
Expand All @@ -20,7 +19,6 @@ python =

[base]
python = python3.11
skip_install = true
package = deepaas

[pytest]
Expand All @@ -29,6 +27,7 @@ addopts = -p no:warnings
[testenv]
usedevelop = True
basepython = python3
skip_install = False
deps =
pytest>=7.2.1,<7.3
pytest-aiohttp
Expand Down Expand Up @@ -84,7 +83,7 @@ exclude =

[testenv:flake8]
basepython = {[base]python}
skip_install = {[base]skip_install}
skip_install = True
deps =
flake8>=4.0,<4.1
flake8-bugbear>=22.3,<22.4
Expand All @@ -98,32 +97,34 @@ commands =

[testenv:black]
basepython = {[base]python}
skip_install = {[base]skip_install}
skip_install = True
deps =
black>=22.3,<22.4
commands = black --check --diff {[base]package}

[testenv:bandit]
basepython = {[base]python}
skip_install = {[base]skip_install}
skip_install = True
deps = bandit
commands = bandit -r {[base]package} -x tests -s B110,B410

[testenv:bandit-report]
basepython = {[base]python}
deps = {[testenv:bandit]deps}
skip_install = {[base]skip_install}
skip_install = True
commands =
- mkdir /tmp/bandit
- bandit -r {[base]package} -x tests -s B110,B410 -f html -o /tmp/bandit/index.html

[testenv:pypi]
basepython = {[base]python}
skip_install = {[base]skip_install}
skip_install = True
skipsdist = True
deps = docutils
commands = python3 setup.py check -r -s -m

[testenv:genconfig]
usedevelop = False
basepython = {[base]python}
commands = oslo-config-generator --config-file=etc/{[base]package}-config-generator.conf

Expand Down

0 comments on commit 36a63ec

Please sign in to comment.