Skip to content

Commit 4f72a6c

Browse files
authored
Use local coverage (#1109)
1 parent dca55bf commit 4f72a6c

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,24 @@ jobs:
5757
run: |
5858
hatch run cov:nowarn || hatch run test:nowarn --lf
5959
60-
- name: Coverage
61-
run: |
62-
pip install codecov coverage[toml]
63-
codecov
64-
6560
- name: Check Launcher
6661
run: |
6762
pip install .
6863
cd $HOME
6964
python -m ipykernel_launcher --help
7065
66+
- uses: jupyterlab/maintainer-tools/.github/actions/upload-coverage@v1
67+
68+
coverage:
69+
runs-on: ubuntu-latest
70+
needs:
71+
- build
72+
steps:
73+
- uses: actions/checkout@v3
74+
- uses: jupyterlab/maintainer-tools/.github/actions/report-coverage@v1
75+
with:
76+
fail_under: 80
77+
7178
test_lint:
7279
name: Test Lint
7380
runs-on: ubuntu-latest
@@ -190,7 +197,7 @@ jobs:
190197
tests_check: # This job does nothing and is only used for the branch protection
191198
if: always()
192199
needs:
193-
- build
200+
- coverage
194201
- test_docs
195202
- test_without_debugpy
196203
- test_miniumum_versions

README.md

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

33
[![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++)
4-
[![codecov](https://codecov.io/gh/ipython/ipykernel/branch/main/graph/badge.svg?token=SyksDOcIJa)](https://codecov.io/gh/ipython/ipykernel)
54
[![Documentation Status](https://readthedocs.org/projects/ipykernel/badge/?version=latest)](http://ipykernel.readthedocs.io/en/latest/?badge=latest)
65

76
This package provides the IPython kernel for Jupyter.

codecov.yml

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

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ exclude_lines = [
191191
]
192192

193193
[tool.coverage.run]
194+
relative_files = true
195+
source = ["ipykernel"]
194196
omit = [
195197
"ipykernel/tests/*",
196198
"ipykernel/datapub.py",

0 commit comments

Comments
 (0)