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]
description = Run unit tests and save coverage
[testenv]
deps =
pytest
pytest-cov
httpx # required for fastapi TestClient
responses
ruff
mypy
types-jsonschema
types-requests
types-pika
cyclonedx-py
sphinx
sphinx-rtd-theme
sphinxcontrib-plantuml
sphinxcontrib-drawio
sphinxcontrib-openapi
commands =
coverage erase
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]
description = Lint code with Ruff
deps = ruff
commands = ruff check mapping_provider test
[testenv:typecheck]
description = Type-check code with mypy
deps =
mypy
types-jsonschema
types-requests
types-pika
commands = mypy mapping_provider
[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
# [tox]
# envlist = coverage, lint, typecheck, docs
#
# [testenv:coverage]
# description = Run unit tests and save coverage
# deps =
# pytest
# pytest-cov
# httpx # required for fastapi TestClient
# responses
# commands =
# coverage erase
# pytest --cov mapping_provider --cov-fail-under=80 --cov-report html --cov-report xml --cov-report term -p no:checkdocs
#
# [testenv:lint]
# description = Lint code with Ruff
# deps = ruff
# commands = ruff check mapping_provider test
#
# [testenv:typecheck]
# description = Type-check code with mypy
# deps =
# mypy
# types-jsonschema
# types-requests
# types-pika
# commands = mypy mapping_provider
#
# [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