Skip to content

Commit 9dc3c40

Browse files
authored
Add deploy action (#178)
* Add new GH action for deployment to pypi
1 parent 8496f32 commit 9dc3c40

File tree

4 files changed

+104
-59
lines changed

4 files changed

+104
-59
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Build
22

33
on:
4-
push:
5-
branches: master
64
pull_request:
75
branches: '*'
86

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build and Publish
2+
on:
3+
push:
4+
branches: master
5+
6+
jobs:
7+
build-n-publish:
8+
name: Build and publish PyPI and TestPyPI
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
- name: Install node
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: '10.x'
17+
- name: Install Python
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: '3.7'
21+
architecture: 'x64'
22+
- name: Install dependencies
23+
run: python -m pip install jupyterlab
24+
- name: Build
25+
run: |
26+
jlpm
27+
jlpm run eslint:check
28+
python -m pip install .
29+
30+
jupyter labextension list 2>&1 | grep -ie "@lckr/jupyterlab_variableinspector.*OK"
31+
python -m jupyterlab.browser_check
32+
- name: Package
33+
run: python setup.py sdist
34+
35+
- name: Publish distribution 📦 to Test PyPI
36+
uses: pypa/gh-action-pypi-publish@master
37+
with:
38+
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
39+
repository_url: https://test.pypi.org/legacy/
40+
- name: Publish distribution 📦 to PyPI
41+
if: startsWith(github.ref, 'refs/tags')
42+
uses: pypa/gh-action-pypi-publish@master
43+
with:
44+
password: ${{ secrets.PYPI_API_TOKEN }}
45+

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# jupyterlab_variableinspector
2+
23
![Github Actions Status](https://github.com/lckr/jupyterlab-variableInspector/workflows/Build/badge.svg)
34
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/lckr/jupyterlab-variableInspector.git/master?urlpath=lab)
45

style/index.css

Lines changed: 58 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,58 @@
1-
@import url('base.css');
2-
3-
.jp-VarInspector {
4-
flex-direction: column;
5-
overflow: auto;
6-
font-size: var(--jp-ui-font-size1);
7-
}
8-
9-
.jp-VarInspector-table {
10-
font-family: monospace;
11-
border-collapse: collapse;
12-
margin: auto;
13-
width: 100%;
14-
color: var(--jp-content-font-color1);
15-
}
16-
17-
.jp-VarInspector-table td,
18-
.jp-VarInspector-table thead {
19-
border: 1px solid;
20-
border-color: var(--jp-layout-color2);
21-
padding: 8px;
22-
}
23-
24-
.jp-VarInspector-table tr:nth-child(even) {
25-
background-color: var(--jp-layout-color1);
26-
}
27-
28-
.jp-VarInspector-content tr:hover {
29-
background-color: var(--jp-layout-color2);
30-
}
31-
32-
.jp-VarInspector-table thead {
33-
font-size: var(--jp-ui-font-size0);
34-
text-align: center;
35-
background-color: var(--jp-layout-color2);
36-
color: var(--jp-ui-font-color1);
37-
font-weight: 600;
38-
letter-spacing: 1px;
39-
text-transform: uppercase;
40-
}
41-
42-
.jp-VarInspector-title {
43-
font-size: var(--jp-ui-font-size1);
44-
color: var(--jp-content-font-color1);
45-
text-align: left;
46-
padding-left: 10px;
47-
}
48-
49-
.jp-VarInspector-deleteButton {
50-
text-align: center;
51-
width: 1em;
52-
}
53-
54-
.jp-VarInspector-varName {
55-
font-weight: 600;
56-
}
57-
1+
2+
@import url('base.css');
3+
4+
.jp-VarInspector {
5+
flex-direction: column;
6+
overflow: auto;
7+
font-size: var(--jp-ui-font-size1);
8+
}
9+
10+
.jp-VarInspector-table {
11+
font-family: monospace;
12+
border-collapse: collapse;
13+
margin: auto;
14+
width: 100%;
15+
color: var(--jp-content-font-color1);
16+
}
17+
18+
.jp-VarInspector-table td,
19+
.jp-VarInspector-table thead {
20+
border: 1px solid;
21+
border-color: var(--jp-layout-color2);
22+
padding: 8px;
23+
}
24+
25+
.jp-VarInspector-table tr:nth-child(even) {
26+
background-color: var(--jp-layout-color1);
27+
}
28+
29+
.jp-VarInspector-content tr:hover {
30+
background-color: var(--jp-layout-color2);
31+
}
32+
33+
.jp-VarInspector-table thead {
34+
font-size: var(--jp-ui-font-size0);
35+
text-align: center;
36+
background-color: var(--jp-layout-color2);
37+
color: var(--jp-ui-font-color1);
38+
font-weight: 600;
39+
letter-spacing: 1px;
40+
text-transform: uppercase;
41+
}
42+
43+
.jp-VarInspector-title {
44+
font-size: var(--jp-ui-font-size1);
45+
color: var(--jp-content-font-color1);
46+
text-align: left;
47+
padding-left: 10px;
48+
}
49+
50+
.jp-VarInspector-deleteButton {
51+
text-align: center;
52+
width: 1em;
53+
}
54+
55+
.jp-VarInspector-varName {
56+
font-weight: 600;
57+
}
58+

0 commit comments

Comments
 (0)