Skip to content

Commit

Permalink
[CI] add coverage test on cuda device (#1930)
Browse files Browse the repository at this point in the history
  • Loading branch information
cir7 authored and ly015 committed Oct 14, 2022
1 parent 1bf14af commit 0cf9561
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/merge_stage_test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: merge_stage_test

on:
pull_request:
push:
paths-ignore:
- 'README.md'
- 'README_zh-CN.md'
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/pr_stage_test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: pr_stage_test

on:
push:
pull_request:
paths-ignore:
- 'README.md'
- 'README_zh-CN.md'
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 0cf9561

Please sign in to comment.