From ef7266b8f6824a4b2ac83ea01a034684937b8f36 Mon Sep 17 00:00:00 2001 From: BO ZHANG Date: Fri, 30 Sep 2022 15:06:24 +0800 Subject: [PATCH] use importlib in pytest --- pipelines/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelines/build.sh b/pipelines/build.sh index 6bf3166..a60a63f 100644 --- a/pipelines/build.sh +++ b/pipelines/build.sh @@ -55,7 +55,7 @@ if [ "$JOB_NAME" != "csst_proto" ]; then echo "===================== download code style tests =====================" curl -O https://csst-tb.bao.ac.cn/code/csst-l1/csst_proto/-/raw/main/pipelines/test_codestyle.py fi -coverage run -m pytest +coverage run -m pytest --import-mode=importlib status_unittest=$? echo "===================== make coverage =====================" -- GitLab