From 75675148ecd7b5a5b92f4bac3e102c1863410080 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Thu, 13 Apr 2023 17:51:08 -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 4789722..cc6b2bd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,10 +32,15 @@ jobs: - name: Run the tests run: | hatch run cov:test || hatch run test:test --lf - - name: 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 check_release: runs-on: ubuntu-latest @@ -134,7 +139,7 @@ jobs: tests_check: # This job does nothing and is only used for the branch protection if: always() needs: - - test + - coverage - test_lint - docs - check_release diff --git a/README.md b/README.md index eed2465..089e23b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Terminado [![Build Status](https://github.com/jupyter/terminado/actions/workflows/test.yml/badge.svg?query=branch%3Amain++)](https://github.com/jupyter/terminado/actions/workflows/test.yml/badge.svg?query=branch%3Amain++) -[![codecov](https://codecov.io/gh/jupyter/terminado/branch/main/graph/badge.svg?token=Ih2XfDqyD1)](https://codecov.io/gh/jupyter/terminado) [![Documentation Status](https://readthedocs.org/projects/terminado/badge/?version=latest)](http://terminado.readthedocs.io/en/latest/?badge=latest) This is a [Tornado](http://tornadoweb.org/) websocket backend for the 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 c09cad1..db4574b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,6 +93,10 @@ exclude_lines = [ "@(abc\\.)?abstractmethod", ] +[tool.coverage.run] +relative_files = true +source = ["terminado"] + [tool.mypy] check_untyped_defs = true disallow_incomplete_defs = true