From 5b4a631cfb1cb3d71fbbe8b805d21fdbef67ce9f Mon Sep 17 00:00:00 2001 From: Giorgio Salluzzo Date: Mon, 7 Apr 2025 12:26:41 +0200 Subject: [PATCH 1/5] Update main.yml --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bb976ac..7667cc8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -46,7 +46,7 @@ jobs: run: | make test make services-down - - name: Push Coveralls - run: | - pip install -q coveralls coveralls[yaml] - coveralls + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} From 36809c0ee4ddb535db2189481b3951f39387797a Mon Sep 17 00:00:00 2001 From: Giorgio Salluzzo Date: Mon, 7 Apr 2025 12:29:42 +0200 Subject: [PATCH 2/5] Coverage. --- Makefile | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ff6a32e..3452a46 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,7 @@ publish: clean install-test-requirements uv publish clean: - rm -rf .coverage *.egg-info dist/ requirements.txt uv.lock || true + rm -rf *.egg-info dist/ requirements.txt uv.lock || true find . -type d -name __pycache__ -exec rm -rf {} \; || true .PHONY: clean publish safetest test setup develop lint-python test-python _services-up diff --git a/pyproject.toml b/pyproject.toml index 41089fe..be88986 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -88,7 +88,7 @@ exclude = [ testpaths = [ "tests", "mocket", ] -addopts = "--doctest-modules --cov=mocket --cov-report=term-missing --cov-append -v -x" +addopts = "--doctest-modules --cov=mocket --cov-report=xml --cov-report=term-missing --cov-append -v -x" [tool.ruff] src = ["mocket", "tests"] From 1a4d8df3fa0fd3c98bfb614d50d03f9db83cb67f Mon Sep 17 00:00:00 2001 From: Giorgio Salluzzo Date: Mon, 7 Apr 2025 12:31:42 +0200 Subject: [PATCH 3/5] Coverage. --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7667cc8..c119d46 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,6 +47,6 @@ jobs: make test make services-down - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} From d56f043a3a8423ebff6f3261dc74bf59bce1351e Mon Sep 17 00:00:00 2001 From: Giorgio Salluzzo Date: Mon, 7 Apr 2025 12:43:18 +0200 Subject: [PATCH 4/5] Coverage. --- .coveralls.yml | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml deleted file mode 100644 index 22c6621..0000000 --- a/.coveralls.yml +++ /dev/null @@ -1 +0,0 @@ -repo_token: 3yI8EwDqrGZaPCnfih1fSDizXbjwwL623 From e181e1812904eb605ea7937b938fabeb164665d9 Mon Sep 17 00:00:00 2001 From: Giorgio Salluzzo Date: Mon, 7 Apr 2025 12:52:49 +0200 Subject: [PATCH 5/5] Replace badge. --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 8b08200..b693dd7 100644 --- a/README.rst +++ b/README.rst @@ -5,8 +5,8 @@ mocket /mɔˈkɛt/ .. image:: https://github.com/mindflayer/python-mocket/actions/workflows/main.yml/badge.svg?branch=main :target: https://github.com/mindflayer/python-mocket/actions?query=workflow%3A%22Mocket%27s+CI%22 -.. image:: https://coveralls.io/repos/github/mindflayer/python-mocket/badge.svg?branch=main - :target: https://coveralls.io/github/mindflayer/python-mocket?branch=main +.. image:: https://codecov.io/github/mindflayer/python-mocket/graph/badge.svg?token=htRySebRBt + :target: https://codecov.io/github/mindflayer/python-mocket .. image:: https://app.codacy.com/project/badge/Grade/6327640518ce42adaf59368217028f14 :target: https://www.codacy.com/gh/mindflayer/python-mocket/dashboard