From c8fdfb87ac186011ae50e2241deac2d3e3548ae8 Mon Sep 17 00:00:00 2001 From: jbannon Date: Sat, 7 May 2022 05:26:05 +0000 Subject: [PATCH] codecov io test coverage --- .github/workflows/build_lint_test.yaml | 7 +++++++ tools/test | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_lint_test.yaml b/.github/workflows/build_lint_test.yaml index f8eeabff..a5e1c61b 100644 --- a/.github/workflows/build_lint_test.yaml +++ b/.github/workflows/build_lint_test.yaml @@ -29,3 +29,10 @@ jobs: - name: Run tests with coverage run: | ./tools/test + - uses: actions/checkout@master + - uses: codecov/codecov-action@v2 + with: + files: ./coverage.xml + name: codecov-umbrella # optional + fail_ci_if_error: true # optional (default = false) + verbose: true # optional (default = false) \ No newline at end of file diff --git a/tools/test b/tools/test index 06ceb188..445b441c 100755 --- a/tools/test +++ b/tools/test @@ -1,7 +1,9 @@ # Run within root directory if [[ $1 = "html" ]]; then - coverage run -m pytest && coverage html + coverage run -m pytest && coverage report && coverage html +elif [[ $1 = "xml" ]]; then + coverage run -m pytest && coverage report && coverage xml elif [[ $1 = "unit" ]]; then coverage run -m pytest tests/unit && coverage report else