From 2210c1dec3214ef5403a04e2eeb5548c4af05ddc Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 19 Nov 2023 22:03:45 +0100 Subject: [PATCH 1/6] coverage --- .github/workflows/testing.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index f73de8c8..b8431c59 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -33,9 +33,7 @@ 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 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 443f8d52d79f51117da7f54bc16eeffb71afea8a Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 19 Nov 2023 22:41:51 +0100 Subject: [PATCH 2/6] coverage file --- .github/workflows/testing.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index b8431c59..49087778 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -34,6 +34,8 @@ jobs: env: DOTDROP_WORKERS: 4 - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 + uses: + with: + files: .coverage env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From f02a5cfadfcc085f282e4b4b06360a0b6bf33bf2 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 19 Nov 2023 23:02:35 +0100 Subject: [PATCH 3/6] fix --- .github/workflows/testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 49087778..40b63307 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -34,7 +34,7 @@ jobs: env: DOTDROP_WORKERS: 4 - name: Upload coverage reports to Codecov - uses: + uses: codecov/codecov-action@v3 with: files: .coverage env: From 6e5cc6cbe53ed15cb1524c6283dd6df2df48fe07 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Mon, 20 Nov 2023 22:28:48 +0100 Subject: [PATCH 4/6] coverage sources --- scripts/check-unittests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From c93da3aa371f26d7bde1f53cf0a2f73eae821993 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 26 Nov 2023 18:13:05 +0100 Subject: [PATCH 5/6] coverage to xml --- .github/workflows/testing.yml | 2 +- .gitignore | 1 + tests.sh | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 40b63307..7b6e8251 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -36,6 +36,6 @@ jobs: - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 with: - files: .coverage + files: coverage.xml env: 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/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..." From 5a38ea7016ae7ff077ad210a56aaa5aae0a466af Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 26 Nov 2023 20:37:35 +0100 Subject: [PATCH 6/6] badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)