Skip to content

Commit cb9cabc

Browse files
committed
fix github action
1 parent 776880f commit cb9cabc

File tree

2 files changed

+31
-6
lines changed

2 files changed

+31
-6
lines changed

.github/workflows/build.yml

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,45 @@ jobs:
1515
- name: Install node
1616
uses: actions/setup-node@v1
1717
with:
18-
node-version: '10.x'
18+
node-version: '12.x'
1919
- name: Install Python
2020
uses: actions/setup-python@v1
2121
with:
2222
python-version: '3.8'
2323
architecture: 'x64'
24+
- name: Cache pip on Linux
25+
uses: actions/cache@v1
26+
if: startsWith(runner.os, 'Linux')
27+
with:
28+
path: ~/.cache/pip
29+
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }}
30+
restore-keys: |
31+
${{ runner.os }}-pip-${{ matrix.python }}
32+
33+
- name: Get yarn cache directory path
34+
id: yarn-cache-dir-path
35+
run: echo "::set-output name=dir::$(yarn cache dir)"
36+
- name: Cache yarn
37+
uses: actions/cache@v1
38+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
39+
with:
40+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
41+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
42+
restore-keys: |
43+
${{ runner.os }}-yarn-
2444
- name: Install dependencies
25-
run: python -m pip install --pre jupyterlab
45+
run: |
46+
python -m pip install --pre jupyterlab==3.0.0b7
47+
python -m pip install jupyter_packaging
2648
- name: Build the extension
2749
run: |
28-
jlpm
50+
pip install .
51+
jlpm install
2952
jlpm run build
3053
cd jupyterlab_widgets
31-
32-
jupyter labextension install .
54+
pwd
55+
pip install -e .
56+
jupyter labextension develop . --overwrite
57+
jupyter labextension list
3358
3459
python -m jupyterlab.browser_check

jupyterlab_widgets/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
cmdclass= cmdclass,
6666
packages=setuptools.find_packages(),
6767
install_requires=[
68-
"jupyterlab~=3.0.0b6",
68+
"jupyterlab~=3.0.0b7",
6969
],
7070
zip_safe=False,
7171
include_package_data=True,

0 commit comments

Comments
 (0)