diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index b70150ada..dfe812a10 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -54,10 +54,15 @@ jobs: run: | hatch run cov:test - - 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: + - run-tests + steps: + - uses: actions/checkout@v3 + - uses: jupyterlab/maintainer-tools/.github/actions/report-coverage@v1 test_lint: name: Test Lint @@ -145,7 +150,7 @@ jobs: tests_check: # This job does nothing and is only used for the branch protection if: always() needs: - - run-tests + - coverage - test_lint - test_minimum_versions - test_prereleases diff --git a/README.md b/README.md index dc9ffba87..02ef9843a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ [![Build Status](https://github.com/jupyter/nbconvert/actions/workflows/tests.yml/badge.svg?query=branch%3Amain++)](https://github.com/jupyter/nbconvert/actions/workflows/tests.yml/badge.svg?query=branch%3Amain++) [![Documentation Status](https://readthedocs.org/projects/nbconvert/badge/?version=latest)](https://nbconvert.readthedocs.io/en/latest/?badge=latest) -[![codecov.io](https://codecov.io/gh/jupyter/nbconvert/coverage.svg?branch=main)](https://codecov.io/gh/gh/nbconvert?branch=main) The **nbconvert** tool, `jupyter nbconvert`, converts notebooks to various other formats via [Jinja] templates. The nbconvert tool allows you to convert an 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 c18cb226b..2fbb20d21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -179,6 +179,10 @@ exclude_lines = [ "@(abc\\.)?abstractmethod", ] +[tool.coverage.run] +relative_files = true +source = ["nbconvert"] + [tool.mypy] check_untyped_defs = true disallow_incomplete_defs = true