Skip to content

Commit c70fc38

Browse files
authored
Use local coverage (#220)
1 parent 11f42af commit c70fc38

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

.github/workflows/test.yml

+10-5
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,15 @@ jobs:
3232
- name: Run the tests
3333
run: |
3434
hatch run cov:test || hatch run test:test --lf
35-
- name: Coverage
36-
run: |
37-
pip install codecov coverage[toml]
38-
codecov
35+
- uses: jupyterlab/maintainer-tools/.github/actions/upload-coverage@v1
36+
37+
coverage:
38+
runs-on: ubuntu-latest
39+
needs:
40+
- test
41+
steps:
42+
- uses: actions/checkout@v3
43+
- uses: jupyterlab/maintainer-tools/.github/actions/report-coverage@v1
3944

4045
check_release:
4146
runs-on: ubuntu-latest
@@ -134,7 +139,7 @@ jobs:
134139
tests_check: # This job does nothing and is only used for the branch protection
135140
if: always()
136141
needs:
137-
- test
142+
- coverage
138143
- test_lint
139144
- docs
140145
- check_release

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Terminado
22

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

76
This is a [Tornado](http://tornadoweb.org/) websocket backend for the

codecov.yml

-9
This file was deleted.

pyproject.toml

+4
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ exclude_lines = [
9393
"@(abc\\.)?abstractmethod",
9494
]
9595

96+
[tool.coverage.run]
97+
relative_files = true
98+
source = ["terminado"]
99+
96100
[tool.mypy]
97101
check_untyped_defs = true
98102
disallow_incomplete_defs = true

0 commit comments

Comments
 (0)