@@ -11,22 +11,48 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Checkout
14- uses : actions/checkout@v1
14+ uses : actions/checkout@v2
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
20- uses : actions/setup-python@v1
20+ uses : actions/setup-python@v2
2121 with :
2222 python-version : ' 3.7'
2323 architecture : ' x64'
24+
25+
26+ - name : Setup pip cache
27+ uses : actions/cache@v2
28+ with :
29+ path : ~/.cache/pip
30+ key : pip-3.7-${{ hashFiles('package.json') }}
31+ restore-keys : |
32+ pip-3.7-
33+ pip-
34+
35+ - name : Get yarn cache directory path
36+ id : yarn-cache-dir-path
37+ run : echo "::set-output name=dir::$(yarn cache dir)"
38+ - name : Setup yarn cache
39+ uses : actions/cache@v2
40+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
41+ with :
42+ path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
43+ key : yarn-${{ hashFiles('**/yarn.lock') }}
44+ restore-keys : |
45+ yarn-
46+
2447 - name : Install dependencies
25- run : python -m pip install jupyterlab
48+ run : python -m pip install -U jupyterlab~=3.0 jupyter_packaging~=0.7.9
2649 - name : Build the extension
2750 run : |
28- pip install .
29- jupyter lab build
30- jupyter serverextension list
31- jupyter labextension list
51+ jlpm
52+ jlpm run eslint:check
53+ python -m pip install .
54+
55+ jupyter server extension list 2>&1 | grep -ie "jupyterlab-snippets.*OK"
56+
57+ jupyter labextension list 2>&1 | grep -ie "jupyterlab-snippets.*OK"
3258 python -m jupyterlab.browser_check
0 commit comments