test: add coverage
This commit is contained in:
parent
b135e1b950
commit
d368a79bf8
@ -1,28 +1,29 @@
|
||||
stages:
|
||||
- lint
|
||||
- init
|
||||
- test
|
||||
|
||||
linting:
|
||||
stage: lint
|
||||
lint:
|
||||
stage: init
|
||||
script:
|
||||
- flake8
|
||||
- interrogate -v --ignore-init-method --ignore-module --ignore-nested-functions --ignore-regex "__repr__" --fail-under 50 mmseg
|
||||
|
||||
|
||||
building:
|
||||
stage: test
|
||||
build:
|
||||
stage: init
|
||||
script:
|
||||
- python setup.py check -m -s
|
||||
- python -m pip install -e .
|
||||
|
||||
mmseg-testing:
|
||||
unit-test:
|
||||
stage: test
|
||||
script:
|
||||
- python -m coverage run --branch --source mmseg -m pytest tests/
|
||||
- python -m coverage xml
|
||||
- python -m coverage report -m
|
||||
coverage: '/TOTAL.*\s([.\d]+)%/'
|
||||
|
||||
kneron-testing:
|
||||
integration-test:
|
||||
stage: test
|
||||
script:
|
||||
- echo "[WIP] This job test kneron-related functions."
|
||||
- echo "[WIP] This job examines integration tests (typically Kneron's)."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user