From 1a17ac60c6c207a71ef77b1a22d504dfb0053034 Mon Sep 17 00:00:00 2001 From: "chingning.chen" Date: Thu, 28 Apr 2022 14:41:17 +0800 Subject: [PATCH] test: update .gitlab-ci.yml for pytest --- .gitlab-ci.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7f1d478..693ee6f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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