Skip to content

Commit

Permalink
Use local coverage (#1976)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Apr 13, 2023
1 parent ee04432 commit 11d51cf
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,15 @@ jobs:
run: |
hatch run cov:test
- 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:
- run-tests
steps:
- uses: actions/checkout@v3
- uses: jupyterlab/maintainer-tools/.github/actions/report-coverage@v1

test_lint:
name: Test Lint
Expand Down Expand Up @@ -145,7 +150,7 @@ jobs:
tests_check: # This job does nothing and is only used for the branch protection
if: always()
needs:
- run-tests
- coverage
- test_lint
- test_minimum_versions
- test_prereleases
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

[![Build Status](https://github.com/jupyter/nbconvert/actions/workflows/tests.yml/badge.svg?query=branch%3Amain++)](https://github.com/jupyter/nbconvert/actions/workflows/tests.yml/badge.svg?query=branch%3Amain++)
[![Documentation Status](https://readthedocs.org/projects/nbconvert/badge/?version=latest)](https://nbconvert.readthedocs.io/en/latest/?badge=latest)
[![codecov.io](https://codecov.io/gh/jupyter/nbconvert/coverage.svg?branch=main)](https://codecov.io/gh/gh/nbconvert?branch=main)

The **nbconvert** tool, `jupyter nbconvert`, converts notebooks to various other
formats via [Jinja] templates. The nbconvert tool allows you to convert an
Expand Down
9 changes: 0 additions & 9 deletions codecov.yml

This file was deleted.

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ exclude_lines = [
"@(abc\\.)?abstractmethod",
]

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

[tool.mypy]
check_untyped_defs = true
disallow_incomplete_defs = true
Expand Down

0 comments on commit 11d51cf

Please sign in to comment.