diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c730f117d..ad5d4fece 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,17 +57,24 @@ jobs: run: | hatch run cov:nowarn || hatch run test:nowarn --lf - - name: Coverage - run: | - pip install codecov coverage[toml] - codecov - - name: Check Launcher run: | pip install . cd $HOME python -m ipykernel_launcher --help + - uses: jupyterlab/maintainer-tools/.github/actions/upload-coverage@v1 + + coverage: + runs-on: ubuntu-latest + needs: + - build + steps: + - uses: actions/checkout@v3 + - uses: jupyterlab/maintainer-tools/.github/actions/report-coverage@v1 + with: + fail_under: 80 + test_lint: name: Test Lint runs-on: ubuntu-latest @@ -190,7 +197,7 @@ jobs: tests_check: # This job does nothing and is only used for the branch protection if: always() needs: - - build + - coverage - test_docs - test_without_debugpy - test_miniumum_versions diff --git a/README.md b/README.md index 1a2e537e0..ec39e4785 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # IPython Kernel for Jupyter [![Build Status](https://github.com/ipython/ipykernel/actions/workflows/ci.yml/badge.svg?query=branch%3Amain++)](https://github.com/ipython/ipykernel/actions/workflows/ci.yml/badge.svg?query=branch%3Amain++) -[![codecov](https://codecov.io/gh/ipython/ipykernel/branch/main/graph/badge.svg?token=SyksDOcIJa)](https://codecov.io/gh/ipython/ipykernel) [![Documentation Status](https://readthedocs.org/projects/ipykernel/badge/?version=latest)](http://ipykernel.readthedocs.io/en/latest/?badge=latest) This package provides the IPython kernel for Jupyter. diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index b75c3e2db..000000000 --- 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 c56abdf1b..50ac5096d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -191,6 +191,8 @@ exclude_lines = [ ] [tool.coverage.run] +relative_files = true +source = ["ipykernel"] omit = [ "ipykernel/tests/*", "ipykernel/datapub.py",