Skip to content

Commit

Permalink
tests: update SQA testing
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarolopez committed Mar 19, 2024
1 parent 36102d6 commit 6507949
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
38 changes: 20 additions & 18 deletions .sqa/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,27 @@ sqa_criteria:
repos:
deepaas:
container: DEEPaaS-testing
tox:
tox_file: 'tox.ini'
testenv:
- flake8
- black
- pip-missing-reqs
commands:
- git config --global --add safe.directory /deepaas-testing
- tox -e flake8
- tox -e black
- tox -e pip-missing-reqs

qc_security:
repos:
deepaas:
container: DEEPaaS-testing
tox:
tox_file: 'tox.ini'
testenv:
- bandit
# qc_doc:
# repos:
# deepaas:
# container: DEEPaaS-testing
# tox:
# tox_file: 'tox.ini'
# testenv:
# - docs
commands:
- git config --global --add safe.directory /deepaas-testing
- tox -e bandit

qc_doc:
repos:
deepaas:
container: DEEPaaS-testing
commands:
- git config --global --add safe.directory /deepaas-testing
- pip install .
- pip install -r doc/requirements.txt
- sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html
- tox -e pypi
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,17 @@ commands = python3 setup.py check -r -s -m

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

[testenv:docs]
basepython = {[base]python}
deps =
-r {toxinidir}/doc/requirements.txt
commands =
rm -rf doc/build
python setup.py build_sphinx
sphinx-build -W --keep-going -b html -j auto doc/source doc/build/html

[testenv:mypy]
description = Static type checks
Expand Down

0 comments on commit 6507949

Please sign in to comment.