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