diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cc128bf5..d23d622c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -65,10 +65,17 @@ jobs: if: ${{ startsWith(matrix.os, 'windows') }} run: | hatch run cov:nowarn || hatch run test:nowarn --lf - - name: Code coverage - run: | - pip install codecov coverage[toml] - codecov + - uses: jupyterlab/maintainer-tools/.github/actions/upload-coverage@v1 + + coverage: + runs-on: ubuntu-latest + needs: + - test + steps: + - uses: actions/checkout@v3 + - uses: jupyterlab/maintainer-tools/.github/actions/report-coverage@v1 + with: + fail_under: 78 docs: runs-on: windows-latest @@ -148,7 +155,7 @@ jobs: tests_check: # This job does nothing and is only used for the branch protection if: always() needs: - - test + - coverage - docs - lint - check_links diff --git a/README.md b/README.md index baa12282..e3d59ec5 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Jupyter Client [![Build Status](https://github.com/jupyter/jupyter_client/workflows/CI/badge.svg)](https://github.com/jupyter/jupyter_client/actions) -[![codecov](https://codecov.io/gh/jupyter/jupyter_client/branch/main/graph/badge.svg?token=kxoFu4KnhT)](https://codecov.io/gh/jupyter/jupyter_client) [![Documentation Status](https://readthedocs.org/projects/jupyter-client/badge/?version=latest)](http://jupyter-client.readthedocs.io/en/latest/?badge=latest) `jupyter_client` contains the reference implementation of the [Jupyter protocol]. diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index b75c3e2d..00000000 --- a/codecov.yml +++ /dev/null @@ -1,9 +0,0 @@ -coverage: - status: - project: - default: - target: auto - threshold: 1 - patch: - default: - target: 0% diff --git a/pyproject.toml b/pyproject.toml index c5db1912..505db1da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,6 @@ Source = "https://github.com/jupyter/jupyter_client" [project.optional-dependencies] test = [ - "codecov", "coverage", "ipykernel>=6.14", "mypy", @@ -157,6 +156,10 @@ omit = [ "jupyter_client/ssh/forward.py" ] +[tool.coverage.run] +relative_files = true +source = ["jupyter_client"] + [tool.mypy] check_untyped_defs = true disallow_any_generics = false