Skip to content

Commit abeeecc

Browse files
committed
generate coverage report
1 parent 4a5a1e2 commit abeeecc

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/build-test-linux-x86_64.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
103103
pushd .
104104
python -m pip install -r tests/py/requirements.txt
105-
cov_param="--cov=torch_tensorrt --cov-report= --cov-config=pyproject.toml"
105+
cov_param="--cov=torch_tensorrt --cov-report=xml:${RUNNER_TEST_RESULTS_DIR}/coverage.xml --cov-config=pyproject.toml"
106106
107107
# test dynamo backend
108108
python -m pytest -m critical ${cov_param} -n 4 tests/py/dynamo/backend/
@@ -121,11 +121,11 @@ jobs:
121121
122122
# test dynamo runtime
123123
python -m pytest ${cov_param} --cov-append tests/py/dynamo/runtime/test_000_*
124-
python -m pytest -m critical ${cov_param} --cov-append --ignore tests/py/dynamo/runtime/test_000_* tests/py/dynamo/runtime/
125-
124+
python -m pytest -m critical ${cov_param} --cov-append --ignore tests/py/dynamo/runtime/test_000_* tests/py/dynamo/runtime/
125+
126126
# test core
127127
python -m pytest -m critical ${cov_param} --cov-append tests/py/core/
128-
128+
129129
coverage report --fail-under=20
130130
131131
tests-py-torchscript-fe:

tests/py/dynamo/partitioning/test_fast_partitioning.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def forward(self, x, y):
8484
1,
8585
"All operators are supported, there should be one segment",
8686
)
87+
8788
@pytest.mark.critical
8889
def test_partition_partially_supported_multi_op(self):
8990
class PartiallySupportedMultiOp(torch.nn.Module):

0 commit comments

Comments
 (0)