Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mapping Provider
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
geant-swd
Next Generation Map
Mapping Provider
Commits
865129a2
Commit
865129a2
authored
1 month ago
by
Erik Reid
Browse files
Options
Downloads
Patches
Plain Diff
put all envs in testenv, for jenkins ci pipeline
parent
9838508f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tox.ini
+58
-33
58 additions, 33 deletions
tox.ini
with
58 additions
and
33 deletions
tox.ini
+
58
−
33
View file @
865129a2
[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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment