diff --git a/.github/workflows/merge_stage_test.yml b/.github/workflows/merge_stage_test.yml index a68549b7f5..faddd30569 100644 --- a/.github/workflows/merge_stage_test.yml +++ b/.github/workflows/merge_stage_test.yml @@ -1,7 +1,7 @@ name: merge_stage_test on: - pull_request: + push: paths-ignore: - 'README.md' - 'README_zh-CN.md' diff --git a/.github/workflows/pr_stage_test.yml b/.github/workflows/pr_stage_test.yml index b46bc2a190..b2b3c7e05e 100644 --- a/.github/workflows/pr_stage_test.yml +++ b/.github/workflows/pr_stage_test.yml @@ -1,7 +1,7 @@ name: pr_stage_test on: - push: + pull_request: paths-ignore: - 'README.md' - 'README_zh-CN.md' @@ -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 }}