From f447b274448907375860995d96b8e4db5a773ae8 Mon Sep 17 00:00:00 2001 From: Wenjie Du Date: Fri, 22 Sep 2023 00:25:53 +0800 Subject: [PATCH] fix: run with `python -m` instead of `coverage -m` to fix the bug of reporting 0% coverage; --- .github/workflows/testing_ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testing_ci.yml b/.github/workflows/testing_ci.yml index b139d018..4cdfe5bc 100644 --- a/.github/workflows/testing_ci.yml +++ b/.github/workflows/testing_ci.yml @@ -69,7 +69,7 @@ jobs: - name: Test with pytest run: | rm -rf tests/__pycache__ - coverage run --source=pypots -m pytest -rA tests/*/* -n auto --dist=loadgroup + python -m pytest -rA tests/*/* -n auto --cov=pypots --dist=loadgroup --cov-config=.coveragerc - name: Generate the LCOV report run: |