diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 2404410..7b6e825 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -33,11 +33,9 @@ jobs: ./tests.sh env: DOTDROP_WORKERS: 4 - - name: Coveralls - run: | - pip install coveralls - coveralls --version - coveralls --service=github + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + with: + files: coverage.xml env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.gitignore b/.gitignore index 4a18301..f7b2636 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 e5206da..e6965c4 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 fe0e63c..23c8d99 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 a8948dd..79199ed 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..."