From b54e0785b8b6d00b5ae66f757bec4a0af84288c9 Mon Sep 17 00:00:00 2001 From: Rahul Jha Date: Fri, 20 Nov 2020 14:20:43 +0530 Subject: [PATCH] Enable Codecov coverage reports (#241) --- .github/workflows/main.yml | 5 +++++ .gitignore | 1 + README.md | 2 +- setup.cfg | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b60229f8..e903930c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -56,3 +56,8 @@ jobs: - name: Check for style issues if: ${{ matrix.python-version == 3.6 && matrix.os == 'ubuntu-20.04' }} run: python -m tox -e style + + - name: Report coverage to Codecov + uses: codecov/codecov-action@v1 + with: + file: ./coverage.xml diff --git a/.gitignore b/.gitignore index 1593442a..df191195 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ *.py[cod] MANIFEST build/ +coverage.xml dist/ htmlcov/ vulture.egg-info/ diff --git a/README.md b/README.md index 875bbc32..8642aed3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Vulture - Find dead code ![CI:Test](https://github.com/jendrikseipp/vulture/workflows/CI/badge.svg) -[![image](https://coveralls.io/repos/github/jendrikseipp/vulture/badge.svg?branch=master)](https://coveralls.io/github/jendrikseipp/vulture?branch=master) +[![Codecov Badge](https://codecov.io/gh/jendrikseipp/vulture/branch/master/graphs/badge.svg)](https://codecov.io/gh/jendrikseipp/vulture?branch=master) Vulture finds unused code in Python programs. This is useful for cleaning up and finding errors in large code bases. If you run Vulture diff --git a/setup.cfg b/setup.cfg index aa9cac7d..632418e6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,7 +5,7 @@ omit = parallel = true [tool:pytest] -addopts = --cov vulture --cov-report=html --cov-report=term --cov-append +addopts = --cov vulture --cov-report=html --cov-report=term --cov-report=xml --cov-append [bdist_wheel] universal = 1