Skip to content

Commit b326cbf

Browse files
feat: add CI and Codecov badges to README and set up Codecov integration
1 parent 7ac4a8e commit b326cbf

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
set -eux
4545
python -m pip install .[test]
4646
47-
pytest -vv -r ap --cov jupyterlab_deepnote
47+
pytest -vv -r ap --cov jupyterlab_deepnote --cov-report=xml
4848
jupyter server extension list
4949
jupyter server extension list 2>&1 | grep -ie "jupyterlab_deepnote.*OK"
5050
@@ -54,6 +54,14 @@ jobs:
5454
env:
5555
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5656

57+
- name: Upload coverage to Codecov
58+
if: ${{ success() && (github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork) }}
59+
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7
60+
with:
61+
token: ${{ secrets.CODECOV_TOKEN }}
62+
files: ./coverage.xml
63+
fail_ci_if_error: true
64+
5765
- name: Package the extension
5866
run: |
5967
set -eux

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# jupyterlab_deepnote
22

3+
[![CI](https://github.com/deepnote/jupyterlab-deepnote/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/deepnote/jupyterlab-deepnote/actions/workflows/ci.yml)
4+
[![codecov](https://codecov.io/gh/deepnote/jupyterlab-deepnote/branch/main/graph/badge.svg)](https://codecov.io/gh/deepnote/jupyterlab-deepnote)
5+
36
A Deepnote extension for JupyterLab
47

58
This extension is composed of a Python package named `jupyterlab_deepnote`

0 commit comments

Comments
 (0)