Skip to content

Commit dbf6b81

Browse files
authored
Use local coverage (#945)
1 parent 58017fc commit dbf6b81

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,17 @@ jobs:
6565
if: ${{ startsWith(matrix.os, 'windows') }}
6666
run: |
6767
hatch run cov:nowarn || hatch run test:nowarn --lf
68-
- name: Code coverage
69-
run: |
70-
pip install codecov coverage[toml]
71-
codecov
68+
- uses: jupyterlab/maintainer-tools/.github/actions/upload-coverage@v1
69+
70+
coverage:
71+
runs-on: ubuntu-latest
72+
needs:
73+
- test
74+
steps:
75+
- uses: actions/checkout@v3
76+
- uses: jupyterlab/maintainer-tools/.github/actions/report-coverage@v1
77+
with:
78+
fail_under: 78
7279

7380
docs:
7481
runs-on: windows-latest
@@ -148,7 +155,7 @@ jobs:
148155
tests_check: # This job does nothing and is only used for the branch protection
149156
if: always()
150157
needs:
151-
- test
158+
- coverage
152159
- docs
153160
- lint
154161
- check_links

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Jupyter Client
22

33
[![Build Status](https://github.com/jupyter/jupyter_client/workflows/CI/badge.svg)](https://github.com/jupyter/jupyter_client/actions)
4-
[![codecov](https://codecov.io/gh/jupyter/jupyter_client/branch/main/graph/badge.svg?token=kxoFu4KnhT)](https://codecov.io/gh/jupyter/jupyter_client)
54
[![Documentation Status](https://readthedocs.org/projects/jupyter-client/badge/?version=latest)](http://jupyter-client.readthedocs.io/en/latest/?badge=latest)
65

76
`jupyter_client` contains the reference implementation of the [Jupyter protocol].

codecov.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ Source = "https://github.com/jupyter/jupyter_client"
5050

5151
[project.optional-dependencies]
5252
test = [
53-
"codecov",
5453
"coverage",
5554
"ipykernel>=6.14",
5655
"mypy",
@@ -157,6 +156,10 @@ omit = [
157156
"jupyter_client/ssh/forward.py"
158157
]
159158

159+
[tool.coverage.run]
160+
relative_files = true
161+
source = ["jupyter_client"]
162+
160163
[tool.mypy]
161164
check_untyped_defs = true
162165
disallow_any_generics = false

0 commit comments

Comments
 (0)