@@ -11,7 +11,7 @@ defaults:
1111 shell : bash -l {0}
1212
1313jobs :
14- build :
14+ lint :
1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Checkout
@@ -24,27 +24,33 @@ jobs:
2424 environment-file : environment.yml
2525 cache-environment : true
2626
27- - name : Dev install
27+ - name : Lint
2828 run : |
2929 set -eux
3030 jlpm
3131 jlpm run build
3232 jlpm run lint:check
33- python -m pip install -v .
34- jupyter labextension list 2>&1 | grep -ie "@jupyterlite/xeus-python-kernel.*OK"
33+
34+ build :
35+ runs-on : ubuntu-latest
36+ steps :
37+ - name : Checkout
38+ uses : actions/checkout@v4
39+
40+ - name : Install Conda environment with Micromamba
41+ uses : mamba-org/setup-micromamba@v1
42+ with :
43+ micromamba-version : ' 1.5.1-0'
44+ environment-file : environment.yml
45+ cache-environment : true
3546
3647 - name : Build the extension
37- run : |
38- pip install build
39- python -m build --sdist
40- cp dist/*.tar.gz jupyterlite-xeus-python.tar.gz
41- pip uninstall -y jupyterlite-xeus-python jupyterlab
42- rm -rf jupyterlite-xeus-python
48+ run : python -m build
4349
4450 - uses : actions/upload-artifact@v2
4551 with :
46- name : jupyterlite-xeus-python-sdist
47- path : jupyterlite-xeus-python.tar.gz
52+ name : dist ${{ github.run_number }}
53+ path : ./dist
4854
4955 test_isolated :
5056 needs : build
@@ -60,19 +66,21 @@ jobs:
6066 architecture : ' x64'
6167 - uses : actions/download-artifact@v2
6268 with :
63- name : jupyterlite-xeus-python-sdist
69+ name : dist ${{ github.run_number }}
70+ path : ./dist
6471 - name : Install and Test
6572 run : |
6673 set -eux
6774 # Remove NodeJS, twice to take care of system and locally installed node versions.
6875 sudo rm -rf $(which node)
6976 sudo rm -rf $(which node)
70- pip install jupyterlite-xeus-python .tar.gz
77+ pip install jupyterlite_xeus_python* .tar.gz
7178 pip install "jupyterlab==4"
7279 jupyter labextension list 2>&1 | grep -ie "@jupyterlite/xeus-python-kernel.*OK"
7380
7481 # TODO: add JupyterLite browser check
7582 # python -m jupyterlab.browser_check --no-chrome-test
83+ working-directory : dist
7684
7785 python-tests-mamba-python :
7886 needs : build
8492
8593 - uses : actions/download-artifact@v2
8694 with :
87- name : jupyterlite-xeus-python-sdist
95+ name : dist ${{ github.run_number }}
96+ path : ./dist
8897
8998 - name : Install Conda environment with Micromamba
9099 uses : mamba-org/setup-micromamba@v1
99108 python -c "from mamba.api import create"
100109
101110 - name : Install
102- run : pip install jupyterlite-xeus-python.tar.gz
111+ run : pip install jupyterlite_xeus_python*.tar.gz
112+ working-directory : dist
103113
104114 - name : Run tests
105115 run : pytest -rP test_xeus_python_env.py
@@ -115,7 +125,8 @@ jobs:
115125
116126 - uses : actions/download-artifact@v2
117127 with :
118- name : jupyterlite-xeus-python-sdist
128+ name : dist ${{ github.run_number }}
129+ path : ./dist
119130
120131 - name : Install Conda environment with Micromamba
121132 uses : mamba-org/setup-micromamba@v1
@@ -125,7 +136,8 @@ jobs:
125136 cache-environment : true
126137
127138 - name : Install
128- run : pip install jupyterlite-xeus-python.tar.gz
139+ run : pip install jupyterlite_xeus_python*.tar.gz
140+ working-directory : dist
129141
130142 - name : Run tests
131143 run : pytest -rP test_xeus_python_env.py
@@ -141,7 +153,8 @@ jobs:
141153
142154 - uses : actions/download-artifact@v2
143155 with :
144- name : jupyterlite-xeus-python-sdist
156+ name : dist ${{ github.run_number }}
157+ path : ./dist
145158
146159 - name : Install Conda environment with Micromamba
147160 uses : mamba-org/setup-micromamba@v1
@@ -151,7 +164,8 @@ jobs:
151164 cache-environment : true
152165
153166 - name : Install
154- run : pip install jupyterlite-xeus-python.tar.gz
167+ run : pip install jupyterlite_xeus_python*.tar.gz
168+ working-directory : dist
155169
156170 - name : Run tests
157171 run : pytest -rP test_xeus_python_env.py
@@ -167,7 +181,8 @@ jobs:
167181
168182 - uses : actions/download-artifact@v2
169183 with :
170- name : jupyterlite-xeus-python-sdist
184+ name : dist ${{ github.run_number }}
185+ path : ./dist
171186
172187 - name : Install Conda environment with Micromamba
173188 uses : mamba-org/setup-micromamba@v1
@@ -177,7 +192,8 @@ jobs:
177192 cache-environment : true
178193
179194 - name : Install
180- run : pip install jupyterlite-xeus-python.tar.gz
195+ run : pip install jupyterlite_xeus_python*.tar.gz
196+ working-directory : dist
181197
182198 - name : Run tests
183199 run : pytest -rP test_xeus_python_env.py
0 commit comments