@@ -16,53 +16,25 @@ jobs:
1616 steps :
1717 - name : Checkout
1818 uses : actions/checkout@v2
19- - name : Install node
20- uses : actions/setup-node@v1
21- with :
22- node-version : ' 14.x'
23- - name : Install Python
24- uses : actions/setup-python@v2
25- with :
26- python-version : ' 3.8'
27- architecture : ' x64'
2819
29- - name : Setup pip cache
30- uses : actions/cache@v2
31- with :
32- path : ~/.cache/pip
33- key : pip-3.8-${{ hashFiles('package.json') }}
34- restore-keys : |
35- pip-3.8-
36- pip-
37-
38- - name : Get yarn cache directory path
39- id : yarn-cache-dir-path
40- run : echo "::set-output name=dir::$(yarn cache dir)"
41- - name : Setup yarn cache
42- uses : actions/cache@v2
43- id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
20+ - name : Install Conda environment with Micromamba
21+ uses : mamba-org/provision-with-micromamba@main
4422 with :
45- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
46- key : yarn-${{ hashFiles('**/yarn.lock') }}
47- restore-keys : |
48- yarn-
49-
50- - name : Install dependencies
51- run : python -m pip install -U jupyterlab~=3.1 check-manifest typer empack
23+ environment-name : xeus-python-kernel
24+ environment-file : environment.yml
5225
53- - name : Build the extension
26+ - name : Dev install
5427 run : |
5528 set -eux
5629 jlpm
5730 jlpm run build
5831 jlpm run eslint:check
59- python -m pip install .
32+ python -m pip install -v .
6033
6134 jupyter labextension list 2>&1 | grep -ie "@jupyterlite/xeus-python-kernel.*OK"
6235
63- # TODO: add JupyterLite browser check
64- # python -m jupyterlab.browser_check
65-
36+ - name : Build the extension
37+ run : |
6638 pip install build
6739 python -m build --sdist
6840 cp dist/*.tar.gz jupyterlite-xeus-python.tar.gz
12092 activate-environment : xeus-python-kernel
12193 environment-file : environment.yml
12294 python-version : ' 3.10'
123- mamba-version : ' *'
95+
96+ - name : Install mamba
97+ run : conda install -c conda-forge mamba
12498
12599 - name : Make sure the Mamba Python API is available
126100 run : |
@@ -152,7 +126,9 @@ jobs:
152126 activate-environment : xeus-python-kernel
153127 environment-file : environment.yml
154128 python-version : ' 3.10'
155- mamba-version : ' *'
129+
130+ - name : Install mamba
131+ run : conda install -c conda-forge mamba
156132
157133 - name : Install
158134 run : pip install jupyterlite-xeus-python.tar.gz
0 commit comments