From 1290ec4ff765aa719d916d7e9db0e5e60bbcaa21 Mon Sep 17 00:00:00 2001 From: alexau Date: Sat, 2 Dec 2023 19:11:43 +0800 Subject: [PATCH] Updated the coverage report scope to remove test files --- .coverage | Bin 69632 -> 0 bytes .github/workflows/test.yml | 2 +- Makefile | 4 ++++ 3 files changed, 5 insertions(+), 1 deletion(-) delete mode 100644 .coverage diff --git a/.coverage b/.coverage deleted file mode 100644 index c091ac8000814f81f92d84317a50a12355faf859..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 69632 zcmeI53v3+MbwGD^XJ`NO_|=NyZzzf)DSlQIMbS=byRt2)svSg@19} zYG+mw9Z|~AL7fV5ouozE6ser1hETw0kTz`^CyiwU4ca2E(zI~w08ZQ{u@nS$mDs4` zMh@M3-+nkNE-CNwqsX}n^4^`_z4x8>nfKnz&fI<1oe5J@#`R1}HI-pUjYAL|zpW?^ zhr_(FDJ`RnCz6_yNRK7rs+mYnDCVSA*gI=zV|b#2b#SV~9S8aG_$`_k zgQHAs0!&P05-Bw^tvswv_wya{-c0SdnOgxyw8TUj_fUHBhxaNOZCuM}>9}U(qUcGC z_4<1sJ>~a=>+6NbG@d3k6NkS*Noruld{Xv|gQ2*d8N=vf88scB)Qo;bEv7K8L!8IW zTxv6VDq`wNGLh!VOdAO^p{Et?xE9Zv+F02H_9L{y2jJOL1GXN*1U-~HGVjYqXa3+a zN9K3WA3P4hrS$^V`2*249L!@*XHzjiemI+&!pwmqa*j=Xu_G5d*3|Qfeb0GQCNJmH zTaujx*arGia2e&U?Zm^b=780yQ$)uu> z^D2W!E4j>p(rm9Ykpc`ggB4BD^E*PM*R-@@un>b1OX{)Gvc^k{p+N_pnGg{b`(o`dxDKsQYHIjuR=3B`^9m#Kj>b+Mtj0Buk@w8=pps-fyo>UENg^X?`rt3*fP3O)HaKs)1 zd?pNq$FT6Mbj!RAV;XHt9PQ>Y6;3YL%sf|boz##}oSHQ=P4QVU_{ z7o8=AkZB;6iW5UQU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Km>>Y5vYnlOtf}a(v!QQ-@?bY_USpk0_V;mSu>HuIi!|K zXFA`z3+~L!s7E!tqJZ5=blCQYXdPRfG!;`99nYrYW#n$dfYwz9GX1I0HQdc`4Y^fFT{{Jq=?>pcg z{|DsPM;ur=_lz*L~wf6lM@eZIf+-Q@kEcf|9Qr&anx$?g6F_YUy| zG2{A$>-StAbpFt33U3Q11P_?1?sK9`bXYSL%xOR>R_^-0u?f6CycXVVnf*v7IGtWu zr%PU!ux0!s8`s#kE#1iu@O@}i({1y1Kml*VE9K2*cuzYR4p(p3W=d}ZQ}GH+m22|K zcZ~UIc|osrx)mHATRn%^Ctsx3sbyEyXjg6<9AiW}BDkw~B62+3up{2}3mXYah*m?xH2GgGfTx zED~t1@dCCbH$oU4Yahm9-Noq!D5lG8Jt`|Mg{p1&>w!hnHDyt(H)D0c;X})erF?a@ zovO!bSIvv<6m+l#yxh2gX|dV9mx1k(YHTmk9wQxo{r{j`ZPbfcwncq+2yFMQMASB; z_XWY|XthR*7c&=31VA&fHvp!)mTlS=Y|IZ9_f%`KSiu(rYrp;<^R1E(TRQf7mqVtQ z4x7c@9PRx5v6t`9vC z@&soBmjY)4`~8>vr~NnhUh$ps4S2r?JJE*-5CI}U1c(3;AOg!JaBvj*F_nxtp);48 z^T%FvaWGW&-qw9Pz;-cc=z;xJ%gVTcrdGy`GBx2~2GTT1pumcyo) z5}U={gJ7|e;buuT+6-BN0hm6kWTv-hY0)uP8REHdX#SU7i~m;1^7KPARi$g0(d4Ik zbD`rDtGf>(Vbzqrm5Br}^Qm583&i1B(KxQSF+G5^1558pgN&o-= diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a2872b9..ce63658 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -214,7 +214,7 @@ jobs: - name: Generate coverage report run: | coverage report -m - coverage html --omit="*/test*" + coverage html --omit="*/tests/*" - name: upload artifact uses: actions/upload-pages-artifact@v1 with: diff --git a/Makefile b/Makefile index f00e9cb..5ce68c3 100644 --- a/Makefile +++ b/Makefile @@ -44,3 +44,7 @@ test_consumer: export RABBITMQ_PASSWORD=$(RABBITMQ_PASSWORD) && \ export QUEUE_NAME=$(QUEUE_NAME) && \ COVERAGE_FILE=.coverage_consumer coverage run -m pytest -vx consumer/tests +coverage_report: + coverage combine .coverage_producer .coverage_consumer && \ + coverage report -m --omit="*/tests/*" +test: test_producer test_consumer coverage_report