Skip to content

Commit e72dd06

Browse files
diningPhilosopher64Prabhakar Kumar
authored andcommitted
Updated README.md to include code coverage metrics.
1 parent 789bbdd commit e72dd06

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

.github/workflows/run-tests.yml

Lines changed: 49 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: MATLAB Jupyter Integration
33
on:
44
push:
55
branches:
6-
- 'main'
6+
- "main"
77

88
jobs:
99
node_tests:
@@ -54,3 +54,51 @@ jobs:
5454
- name: Test with pytest
5555
run: |
5656
python setup.py test
57+
58+
generate_and_upload_code_coverage:
59+
needs: [python_tests, node_tests]
60+
if: success()
61+
runs-on: ubuntu-latest
62+
steps:
63+
- name: Checkout
64+
uses: actions/checkout@v2
65+
66+
- name: Set up Python 3.7
67+
uses: actions/setup-python@v2
68+
with:
69+
python-version: 3.7
70+
71+
- name: Use Node.js 13.x
72+
uses: actions/setup-node@v2
73+
with:
74+
node-version: 13.x
75+
76+
- name: Install Python build dependencies
77+
run: |
78+
pip install -e .[DEV]
79+
80+
- name: Generate Code Coverage report for Python code
81+
run: |
82+
pytest --cov=./ --cov-report=xml
83+
84+
- name: Upload python coverage report to Codecov
85+
uses: codecov/codecov-action@v2
86+
with:
87+
directory: ./
88+
name: Python-codecov
89+
files: ./coverage.xml
90+
fail_ci_if_error: true
91+
verbose: true
92+
93+
- name: Install Node Dependencies
94+
run: npm --prefix gui install gui
95+
96+
- name: Generate code coverage for Javascript code
97+
run: npm --prefix gui test -- --coverage --watchAll=false
98+
99+
- name: Upload Javscript coverage report to Codecov
100+
uses: codecov/codecov-action@v2
101+
with:
102+
directory: ./gui/coverage/
103+
fail_ci_if_error: true
104+
verbose: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# MATLAB Integration for Jupyter
22
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/mathworks/jupyter-matlab-proxy/MATLAB%20Jupyter%20Integration?logo=github)](https://github.com/mathworks/jupyter-matlab-proxy/actions)
33
[![PyPI badge](https://img.shields.io/pypi/v/jupyter-matlab-proxy.svg?logo=pypi)](https://pypi.python.org/pypi/jupyter-matlab-proxy)
4-
4+
[![codecov](https://codecov.io/gh/mathworks/jupyter-matlab-proxy/branch/main/graph/badge.svg?token=ZW3SESKCSS)](https://codecov.io/gh/mathworks/jupyter-matlab-proxy)
55
The `jupyter-matlab-proxy` Python® package allows you to integrate MATLAB® with Jupyter®. The MATLAB integration for Jupyter enables you to open a MATLAB desktop in a web browser tab, directly from your Jupyter environment. This is not a kernel integration.
66

77
The MATLAB Integration for Jupyter is under active development and you might find issues with the MATLAB graphical user interface. For support or to report issues, see the [Feedback](#feedback) section.

0 commit comments

Comments
 (0)