From 2030bdfda0f509a6f1318d6fbfd11186d5cc8b59 Mon Sep 17 00:00:00 2001 From: lilin Date: Tue, 13 Sep 2022 17:46:01 +0800 Subject: [PATCH] [CI] add coverage test on cuda device --- .github/workflows/pr_stage_test.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/pr_stage_test.yml b/.github/workflows/pr_stage_test.yml index b46bc2a190..d8aecf0853 100644 --- a/.github/workflows/pr_stage_test.yml +++ b/.github/workflows/pr_stage_test.yml @@ -121,6 +121,11 @@ jobs: run: | python setup.py check -m -s TORCH_CUDA_ARCH_LIST=7.0 pip install -e . + - name: Run unittests and generate coverage report + run: | + coverage run --branch --source mmaction -m pytest tests/ + coverage xml + coverage report -m build_windows: runs-on: ${{ matrix.os }}