Skip to content

Commit 69eebc2

Browse files
datumboxfacebook-github-bot
authored andcommitted
[fbsync] add coverage to prototype tests CI (#6630)
Summary: * add coverage to prototype tests CI * line continuation Reviewed By: YosuaMichael Differential Revision: D39885421 fbshipit-source-id: 514275f7b5f03bd6cd108572857e0552f35053f3
1 parent 4f5876a commit 69eebc2

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/prototype-tests.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,31 @@ jobs:
3737
run: pip install --progress-bar=off scipy pycocotools h5py iopath
3838

3939
- name: Install test requirements
40-
run: pip install --progress-bar=off pytest pytest-mock
40+
run: pip install --progress-bar=off pytest pytest-mock pytest-cov
4141

4242
- name: Run prototype datasets tests
4343
shell: bash
44-
run: pytest --durations=20 test/test_prototype_datasets*.py
44+
run: |
45+
pytest \
46+
--durations=20 \
47+
--cov=torchvision/prototype/datasets \
48+
--cov-report=term-missing \
49+
test/test_prototype_datasets*.py
4550
4651
- name: Run prototype transforms tests
4752
shell: bash
48-
run: pytest --durations=20 test/test_prototype_transforms*.py
53+
run: |
54+
pytest \
55+
--durations=20 \
56+
--cov=torchvision/prototype/transforms \
57+
--cov-report=term-missing \
58+
test/test_prototype_transforms*.py
4959
5060
- name: Run prototype models tests
5161
shell: bash
52-
run: pytest --durations=20 test/test_prototype_models*.py
62+
run: |
63+
pytest \
64+
--durations=20 \
65+
--cov=torchvision/prototype/models \
66+
--cov-report=term-missing \
67+
test/test_prototype_models*.py

0 commit comments

Comments
 (0)