From 367aa5967e9d6a892afeea79090ca70ecead8534 Mon Sep 17 00:00:00 2001 From: jbannon Date: Fri, 29 Apr 2022 07:45:41 +0000 Subject: [PATCH] try lcov --- .github/workflows/build_lint_test.yaml | 8 ++++---- tools/test | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build_lint_test.yaml b/.github/workflows/build_lint_test.yaml index e1e85860..1846fb0e 100644 --- a/.github/workflows/build_lint_test.yaml +++ b/.github/workflows/build_lint_test.yaml @@ -25,10 +25,10 @@ jobs: - name: Run tests run: | pip install .[test] - ./tools/test xml + ./tools/test lcov - name: Report coverage - uses: 5monkeys/cobertura-action@master + uses: zgosalvez/github-actions-report-lcov@v1 with: - path: coverage.xml + coverage-files: coverage.lcov + artifact-name: code-coverage-report repo_token: ${{ secrets.GITHUB_TOKEN }} - minimum_coverage: 5 # TODO: Add more tests diff --git a/tools/test b/tools/test index 10dd7ab9..0d71657b 100755 --- a/tools/test +++ b/tools/test @@ -2,8 +2,8 @@ if [ $1 = "html" ]; then coverage run -m pytest && coverage html -elif [ $1 = "xml" ]; then - coverage run -m pytest && coverage xml +elif [ $1 = "lcov" ]; then + coverage run -m pytest && coverage lcov else coverage run -m pytest && coverage report fi