test: update .gitlab-ci.yml for pytest
This commit is contained in:
parent
b94d0f818e
commit
1a17ac60c6
@ -1,7 +1,21 @@
|
||||
stages:
|
||||
- linting
|
||||
- lint
|
||||
- test
|
||||
|
||||
lint:
|
||||
stage: linting
|
||||
linting:
|
||||
stage: lint
|
||||
script:
|
||||
- flake8
|
||||
|
||||
building:
|
||||
stage: test
|
||||
script:
|
||||
- python setup.py check -m -s
|
||||
- python -m pip install -e .
|
||||
|
||||
testing:
|
||||
stage: test
|
||||
script:
|
||||
- python -m coverage run --branch --source mmcv -m pytest tests/
|
||||
- python -m coverage xml
|
||||
- python -m coverage report -m
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user