From c261f2ca679cb65ebca773878d75a572441d29fc Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Thu, 13 Apr 2023 17:27:40 -0500 Subject: [PATCH] use local coverage --- .github/workflows/test.yml | 15 ++++++++++----- README.md | 1 - codecov.yml | 9 --------- pyproject.toml | 4 ++++ 4 files changed, 14 insertions(+), 15 deletions(-) delete mode 100644 codecov.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 86110a0..a9ed514 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,15 +41,20 @@ jobs: - name: Test run: | hatch run cov:test - - name: Coverage - run: | - pip install codecov coverage[toml] - codecov - name: Check CLI run: | pip install . cd $HOME jupyter troubleshoot + - 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 test_minimum_versions: name: Test Minimum Versions @@ -152,7 +157,7 @@ jobs: tests_check: # This job does nothing and is only used for the branch protection if: always() needs: - - build + - coverage - test_lint - test_docs - test_minimum_versions diff --git a/README.md b/README.md index eecd679..0f46386 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Jupyter Core [![Build Status](/~https://github.com/jupyter/jupyter_core/actions/workflows/test.yml/badge.svg?query=branch%3Amain++)](/~https://github.com/jupyter/jupyter_core/actions/workflows/test.yml/badge.svg?query=branch%3Amain++) -[![codecov](https://codecov.io/gh/jupyter/jupyter_core/branch/main/graph/badge.svg?token=IRZuxPXamU)](https://codecov.io/gh/jupyter/jupyter_core) [![Documentation Status](https://readthedocs.org/projects/jupyter-core/badge/?version=latest)](http://jupyter-core.readthedocs.io/en/latest/?badge=latest) Core common functionality of Jupyter projects. diff --git a/codecov.yml b/codecov.yml deleted file mode 100644 index b75c3e2..0000000 --- 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 a5c2cdb..11a65e9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -138,6 +138,10 @@ filterwarnings= [ "module:Jupyter is migrating its paths to use standard platformdirs:DeprecationWarning", ] +[tool.coverage.run] +relative_files = true +source = ["jupyter_core"] + [tool.coverage.report] exclude_lines = [ "pragma: no cover",