test: update .gitlab-ci.yml for pytest

This commit is contained in:
chingning.chen 2022-04-28 14:41:17 +08:00 committed by EricWu
parent b94d0f818e
commit 1a17ac60c6

View File

@ -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