Skip to content
Snippets Groups Projects
Commit 865129a2 authored by Erik Reid's avatar Erik Reid
Browse files

put all envs in testenv, for jenkins ci pipeline

parent 9838508f
Branches
Tags
No related merge requests found
[tox]
envlist = coverage, lint, typecheck, docs
[testenv:coverage] [testenv]
description = Run unit tests and save coverage
deps = deps =
pytest pytest
pytest-cov pytest-cov
httpx # required for fastapi TestClient httpx # required for fastapi TestClient
responses responses
ruff
mypy
types-jsonschema
types-requests
types-pika
cyclonedx-py
sphinx
sphinx-rtd-theme
sphinxcontrib-plantuml
sphinxcontrib-drawio
sphinxcontrib-openapi
commands = commands =
coverage erase coverage erase
pytest --cov mapping_provider --cov-fail-under=80 --cov-report html --cov-report xml --cov-report term -p no:checkdocs pytest --cov mapping_provider --cov-fail-under=80 --cov-report html --cov-report xml --cov-report term -p no:checkdocs
ruff check mapping_provider test
mypy mapping_provider
cyclonedx-py environment --output-format json -o bom.json
sphinx-build -b html docs/source docs/build
[testenv:lint] # [tox]
description = Lint code with Ruff # envlist = coverage, lint, typecheck, docs
deps = ruff #
commands = ruff check mapping_provider test # [testenv:coverage]
# description = Run unit tests and save coverage
[testenv:typecheck] # deps =
description = Type-check code with mypy # pytest
deps = # pytest-cov
mypy # httpx # required for fastapi TestClient
types-jsonschema # responses
types-requests # commands =
types-pika # coverage erase
commands = mypy mapping_provider # pytest --cov mapping_provider --cov-fail-under=80 --cov-report html --cov-report xml --cov-report term -p no:checkdocs
#
[testenv:sbom] # [testenv:lint]
description = Create SBOM for dependency analysis # description = Lint code with Ruff
deps = cyclonedx-py # deps = ruff
commands = cyclonedx-py environment --output-format json -o bom.json # commands = ruff check mapping_provider test
#
[testenv:docs] # [testenv:typecheck]
description = Build docs # description = Type-check code with mypy
deps = # deps =
sphinx # mypy
sphinx-rtd-theme # types-jsonschema
sphinxcontrib-plantuml # types-requests
sphinxcontrib-drawio # types-pika
sphinxcontrib-openapi # commands = mypy mapping_provider
commands = sphinx-build -b html docs/source docs/build #
# [testenv:sbom]
# description = Create SBOM for dependency analysis
# deps = cyclonedx-py
# commands = cyclonedx-py environment --output-format json -o bom.json
#
# [testenv:docs]
# description = Build docs
# deps =
# sphinx
# sphinx-rtd-theme
# sphinxcontrib-plantuml
# sphinxcontrib-drawio
# sphinxcontrib-openapi
# commands = sphinx-build -b html docs/source docs/build
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment