Skip to content

Commit b0d8c12

Browse files
committed
Adopting matlab-proxy
1 parent 59895d1 commit b0d8c12

File tree

125 files changed

+431
-29743
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+431
-29743
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,6 @@ on:
66
types: [created]
77

88
jobs:
9-
node_tests:
10-
runs-on: ubuntu-latest
11-
12-
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2
15-
with:
16-
ref: ${{github.sha}}
17-
18-
- name: Use Node.js 13.x
19-
uses: actions/setup-node@v2
20-
with:
21-
node-version: 13.x
22-
23-
- name: Install Node dependencies
24-
run: npm --prefix gui install gui
25-
26-
- name: Build Project
27-
run: npm --prefix gui build --if-present
28-
29-
- name: Run Node tests
30-
run: npm --prefix gui test
31-
329
python_tests:
3310
runs-on: ubuntu-latest
3411

@@ -44,9 +21,9 @@ jobs:
4421
python-version: 3.6
4522

4623
- name: Install dependencies
47-
# Installing wheel package will slightly speed-up installing dependencies.
48-
# Installing the package with "[dev]" flag will install test dependecies as well,
49-
# enabling us to run pytest.
24+
# Installing wheel package will slightly speed-up installing dependencies.
25+
# Installing the package with "[dev]" flag will install test dependecies as well,
26+
# enabling us to run pytest.
5027
run: |
5128
python -m pip install --upgrade pip
5229
python -m pip install wheel
@@ -55,8 +32,8 @@ jobs:
5532
- name: Run Python Tests
5633
run: python -m pytest
5734

58-
build_and_publish:
59-
needs: [python_tests, node_tests]
35+
build_and_publish_pypi:
36+
needs: [python_tests]
6037
if: success()
6138
runs-on: ubuntu-latest
6239

@@ -71,11 +48,6 @@ jobs:
7148
with:
7249
python-version: 3.6
7350

74-
- name: Use Node.js 13.x
75-
uses: actions/setup-node@v2
76-
with:
77-
node-version: 13.x
78-
7951
- name: Install Python build dependencies
8052
run: |
8153
python -m pip install --upgrade pip
@@ -91,3 +63,40 @@ jobs:
9163
verbose: true
9264
password: ${{ secrets.PYPI_TOKEN }}
9365
repository_url: https://upload.pypi.org/legacy/
66+
67+
# build_and_publish_anaconda:
68+
# needs: [build_and_publish_pypi]
69+
# if: success()
70+
# runs-on: ubuntu-latest
71+
72+
# steps:
73+
# - name: Checkout
74+
# uses: actions/checkout@v2
75+
# with:
76+
# ref: ${{github.sha}}
77+
78+
# - name: Set up Python 3.6
79+
# uses: actions/setup-python@v2
80+
# with:
81+
# python-version: 3.6
82+
83+
# - name: Install Python build dependencies
84+
# run: |
85+
# python -m pip install --upgrade pip
86+
# python -m pip install wheel
87+
# python -m pip install .[dev]
88+
89+
# - name: Build and Publish to Anaconda.
90+
# env:
91+
# ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}
92+
93+
# run: |
94+
# # $CONDA is an environment variable pointing to the root of the miniconda directory
95+
# echo $CONDA/bin >> $GITHUB_PATH
96+
# conda install -y conda-build
97+
# conda install -y anaconda-client
98+
# cd ./anaconda
99+
# conda skeleton pypi jupyter-matlab-proxy
100+
# python parse_meta_file.py
101+
# conda build ./jupyter-matlab-proxy --python 3.6 --output-folder ./build
102+
# $CONDA/bin/anaconda upload --label main ./build/linux-64/jupyter*.tar.gz

.github/workflows/run-tests.yml

Lines changed: 4 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,6 @@ on:
66
- "main"
77

88
jobs:
9-
node_tests:
10-
runs-on: ubuntu-latest
11-
12-
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2
15-
16-
- name: Use Node.js 13.x
17-
uses: actions/setup-node@v2
18-
with:
19-
node-version: 13.x
20-
21-
- name: Install Node dependencies
22-
run: npm --prefix gui install gui
23-
24-
- name: Build Project
25-
run: npm --prefix gui build --if-present
26-
27-
- name: Run Node tests
28-
run: npm --prefix gui test
29-
309
python_tests:
3110
runs-on: ubuntu-latest
3211
strategy:
@@ -43,9 +22,9 @@ jobs:
4322
python-version: ${{ matrix.python-version }}
4423

4524
- name: Install dependencies
46-
# Installing wheel package will slightly speed-up installing dependencies.
47-
# Installing the package with "[dev]" flag will install test dependecies as well,
48-
# enabling us to run pytest.
25+
# Installing wheel package will slightly speed-up installing dependencies.
26+
# Installing the package with "[dev]" flag will install test dependecies as well,
27+
# enabling us to run pytest.
4928
run: |
5029
python -m pip install --upgrade pip
5130
python -m pip install wheel
@@ -58,7 +37,7 @@ jobs:
5837
run: python -m pytest
5938

6039
generate_and_upload_code_coverage:
61-
needs: [python_tests, node_tests]
40+
needs: [python_tests]
6241
if: success()
6342
runs-on: ubuntu-latest
6443
steps:
@@ -70,11 +49,6 @@ jobs:
7049
with:
7150
python-version: 3.7
7251

73-
- name: Use Node.js 13.x
74-
uses: actions/setup-node@v2
75-
with:
76-
node-version: 13.x
77-
7852
- name: Install Python build dependencies
7953
run: |
8054
python -m pip install --upgrade pip
@@ -93,16 +67,3 @@ jobs:
9367
files: ./coverage.xml
9468
fail_ci_if_error: true
9569
verbose: true
96-
97-
- name: Install Node Dependencies
98-
run: npm --prefix gui install gui
99-
100-
- name: Generate code coverage for Javascript code
101-
run: npm --prefix gui test -- --coverage --watchAll=false
102-
103-
- name: Upload Javscript coverage report to Codecov
104-
uses: codecov/codecov-action@v2
105-
with:
106-
directory: ./gui/coverage/
107-
fail_ci_if_error: true
108-
verbose: true

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ dist/
66
.venv/
77
.vscode/
88
htmlcov/
9-
.coverage
10-
jupyter_matlab_proxy/gui/
9+
.coverage

Advanced-Usage.md

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

Development-Customization-Info.md

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

MANIFEST.in

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
include README.md
2-
recursive-include jupyter_matlab_proxy/icons *
3-
recursive-include jupyter_matlab_proxy/matlab *
4-
recursive-include gui *
5-
recursive-exclude gui/node_modules *
6-
recursive-exclude gui/build *
2+

0 commit comments

Comments
 (0)