Skip to content

Commit 6f3e31a

Browse files
committed
update
1 parent 5ad505e commit 6f3e31a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/_unit_test_coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,8 @@ jobs:
108108
echo "TEST_EXIT_CODE=${TEST_EXIT_CODE}" >> exit_code.env
109109
coverage combine coveragedata/
110110
coverage xml -o python_coverage_all.xml
111-
sed -i.bak \"s#filename=\\\".*site-packages/fastdeploy#filename=\\\"fastdeploy#g\" python_coverage_all.xml
112111
COVERAGE_EXIT_CODE=0
113-
diff-cover python_coverage_all.xml --diff-file=diff.txt --fail-under=80 || COVERAGE_EXIT_CODE=9
112+
diff-cover python_coverage_all.xml --diff-file=diff.txt --fail-under=80 || COVERAGE_EXIT_CODE=9
114113
echo "COVERAGE_EXIT_CODE=${COVERAGE_EXIT_CODE}" >> exit_code.env
115114
python scripts/generate_diff_coverage_xml.py diff.txt python_coverage_all.xml
116115
'
@@ -129,6 +128,7 @@ jobs:
129128
push_file=$(realpath bos_tools.py)
130129
python -m pip install bce-python-sdk==0.9.29
131130
diff_cov_file="diff_coverage.xml"
131+
diff_cov_file="python_coverage_all.xml"
132132
if [ -f ${diff_cov_file} ];then
133133
python ${push_file} ${diff_cov_file} ${target_path}
134134
target_path_stripped="${target_path#paddle-github-action/}"

0 commit comments

Comments
 (0)