Skip to content

Commit 0243a2b

Browse files
authored
Use local coverage (#503)
1 parent 9f57027 commit 0243a2b

File tree

5 files changed

+15
-18
lines changed

5 files changed

+15
-18
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,15 @@ jobs:
5454
if: ${{ matrix.os != 'ubuntu-latest' }}
5555
run: hatch run cov:test -s -n auto || hatch run cov:test -s --lf
5656

57-
- name: Codecov
58-
run: |
59-
pip install codecov coverage[toml]
60-
codecov
57+
- uses: jupyterlab/maintainer-tools/.github/actions/upload-coverage@v1
58+
59+
coverage:
60+
runs-on: ubuntu-latest
61+
needs:
62+
- test
63+
steps:
64+
- uses: actions/checkout@v3
65+
- uses: jupyterlab/maintainer-tools/.github/actions/report-coverage@v1
6166

6267
generate_changelog:
6368
runs-on: ubuntu-20.04
@@ -151,7 +156,7 @@ jobs:
151156
if: always()
152157
needs:
153158
- check_links
154-
- test
159+
- coverage
155160
- docs
156161
- lint
157162
- check_local_actions
File renamed without changes.

README.md

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

33
[![Build Status](https://github.com/jupyter-server/jupyter-releaser/actions/workflows/test.yml/badge.svg?query=branch%3Amain++)](https://github.com/jupyter-server/jupyter_releaser/actions/workflows/test.yml/badge.svg?query=branch%3Amain++)
4-
[![codecov](https://codecov.io/gh/jupyter-server/jupyter_releaser/branch/main/graph/badge.svg?token=6OPBSEMMUG)](https://codecov.io/gh/jupyter-server/jupyter_releaser)
54
[![Documentation Status](https://readthedocs.org/projects/jupyter-releaser/badge/?version=latest)](http://jupyter-releaser.readthedocs.io/en/latest/?badge=latest)
65

76
**Jupyter Releaser** contains a set of helper scripts and GitHub Actions to aid in automated releases of Python and npm packages.

codecov.yml

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

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ docs = [
5454
"sphinx-click",
5555
]
5656
test = [
57-
"coverage",
5857
"fastapi",
5958
"pre-commit",
6059
"pytest>=7.0",
61-
"pytest-cov",
6260
"pytest-mock",
6361
"pytest-xdist[psutil]",
6462
"uvicorn"
@@ -84,7 +82,7 @@ nowarn = "test -W default {args}"
8482

8583
[tool.hatch.envs.cov]
8684
features = ["test"]
87-
dependencies = ["coverage", "pytest-cov"]
85+
dependencies = ["coverage[toml]", "pytest-cov"]
8886
[tool.hatch.envs.cov.scripts]
8987
test = "python -m pytest -vv --cov jupyter_releaser --cov-branch --cov-report term-missing:skip-covered {args}"
9088
nowarn = "test -W default {args}"
@@ -147,6 +145,10 @@ exclude_lines = [
147145
"@(abc\\.)?abstractmethod",
148146
]
149147

148+
[tool.coverage.run]
149+
relative_files = true
150+
source = ["jupyter_releaser"]
151+
150152
[tool.mypy]
151153
check_untyped_defs = true
152154
disallow_any_generics = false

0 commit comments

Comments
 (0)