Skip to content

Commit

Permalink
Use local coverage (#945)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Apr 13, 2023
1 parent 58017fc commit dbf6b81
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/main.yml
Expand Up @@ -65,10 +65,17 @@ jobs:
if: ${{ startsWith(matrix.os, 'windows') }}
run: |
hatch run cov:nowarn || hatch run test:nowarn --lf
- 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:
- test
steps:
- uses: actions/checkout@v3
- uses: jupyterlab/maintainer-tools/.github/actions/report-coverage@v1
with:
fail_under: 78

docs:
runs-on: windows-latest
Expand Down Expand Up @@ -148,7 +155,7 @@ jobs:
tests_check: # This job does nothing and is only used for the branch protection
if: always()
needs:
- test
- coverage
- docs
- lint
- check_links
Expand Down
1 change: 0 additions & 1 deletion README.md
@@ -1,7 +1,6 @@
# Jupyter Client

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

`jupyter_client` contains the reference implementation of the [Jupyter protocol].
Expand Down
9 changes: 0 additions & 9 deletions codecov.yml

This file was deleted.

5 changes: 4 additions & 1 deletion pyproject.toml
Expand Up @@ -50,7 +50,6 @@ Source = "https://github.com/jupyter/jupyter_client"

[project.optional-dependencies]
test = [
"codecov",
"coverage",
"ipykernel>=6.14",
"mypy",
Expand Down Expand Up @@ -157,6 +156,10 @@ omit = [
"jupyter_client/ssh/forward.py"
]

[tool.coverage.run]
relative_files = true
source = ["jupyter_client"]

[tool.mypy]
check_untyped_defs = true
disallow_any_generics = false
Expand Down

0 comments on commit dbf6b81

Please sign in to comment.