diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index f73de8c8..7b6e8251 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -33,9 +33,9 @@ jobs: ./tests.sh env: DOTDROP_WORKERS: 4 - - name: Coveralls - run: | - pip install coveralls - coveralls --service=github + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + with: + files: coverage.xml env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.gitignore b/.gitignore index 4a183014..f7b26362 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ venv .coverage* htmlcov coverages/ +coverage.xml # IDE .idea/ diff --git a/README.md b/README.md index e5206daa..e6965c4f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ [![Tests Status](https://github.com/deadc0de6/dotdrop/workflows/tests/badge.svg?branch=master)](https://github.com/deadc0de6/dotdrop/actions) [![Doc Status](https://readthedocs.org/projects/dotdrop/badge/?version=latest)](https://dotdrop.readthedocs.io/en/latest/?badge=latest) -[![Coveralls](https://img.shields.io/coveralls/github/deadc0de6/dotdrop)](https://coveralls.io/github/deadc0de6/dotdrop?branch=master) +[![codecov](https://codecov.io/github/deadc0de6/dotdrop/graph/badge.svg?token=SscGyrtgYL)](https://codecov.io/github/deadc0de6/dotdrop) ![CodeQL](https://github.com/deadc0de6/dotdrop/workflows/CodeQL/badge.svg) [![Python](https://img.shields.io/pypi/pyversions/dotdrop.svg)](https://pypi.python.org/pypi/dotdrop) diff --git a/scripts/check-unittests.sh b/scripts/check-unittests.sh index fe0e63c4..23c8d996 100755 --- a/scripts/check-unittests.sh +++ b/scripts/check-unittests.sh @@ -12,4 +12,4 @@ if [ -n "${WORKERS}" ]; then fi mkdir -p coverages/ -coverage run -p --data-file coverages/coverage -m pytest tests -x \ No newline at end of file +coverage run -p --data-file coverages/coverage --source=dotdrop -m pytest tests -x \ No newline at end of file diff --git a/tests.sh b/tests.sh index a8948ddc..79199ed0 100755 --- a/tests.sh +++ b/tests.sh @@ -41,6 +41,7 @@ echo "tests-ng..." # merge coverage coverage combine coverages/* +coverage xml # test doc echo "checking documentation..."