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]
[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
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