6
6
pull_request :
7
7
branches : ' *'
8
8
9
+ defaults :
10
+ run :
11
+ shell : bash -l {0}
12
+
9
13
jobs :
10
14
build :
11
15
runs-on : ubuntu-latest
@@ -64,14 +68,14 @@ jobs:
64
68
65
69
pip install build
66
70
python -m build --sdist
67
- cp dist/*.tar.gz myextension .tar.gz
68
- pip uninstall -y myextension jupyterlab
69
- rm -rf myextension
71
+ cp dist/*.tar.gz jupyterlite-xeus-python .tar.gz
72
+ pip uninstall -y jupyterlite-xeus-python jupyterlab
73
+ rm -rf jupyterlite-xeus-python
70
74
71
75
- uses : actions/upload-artifact@v2
72
76
with :
73
- name : myextension -sdist
74
- path : myextension .tar.gz
77
+ name : jupyterlite-xeus-python -sdist
78
+ path : jupyterlite-xeus-python .tar.gz
75
79
76
80
test_isolated :
77
81
needs : build
@@ -87,16 +91,135 @@ jobs:
87
91
architecture : ' x64'
88
92
- uses : actions/download-artifact@v2
89
93
with :
90
- name : myextension -sdist
94
+ name : jupyterlite-xeus-python -sdist
91
95
- name : Install and Test
92
96
run : |
93
97
set -eux
94
98
# Remove NodeJS, twice to take care of system and locally installed node versions.
95
99
sudo rm -rf $(which node)
96
100
sudo rm -rf $(which node)
97
- pip install myextension .tar.gz
101
+ pip install jupyterlite-xeus-python .tar.gz
98
102
pip install jupyterlab
99
103
jupyter labextension list 2>&1 | grep -ie "@jupyterlite/xeus-python-kernel.*OK"
100
104
101
105
# TODO: add JupyterLite browser check
102
106
# python -m jupyterlab.browser_check --no-chrome-test
107
+
108
+ python-tests-mamba-python :
109
+ needs : build
110
+ runs-on : ubuntu-latest
111
+
112
+ steps :
113
+ - name : Checkout
114
+ uses : actions/checkout@v2
115
+
116
+ - uses : actions/download-artifact@v2
117
+ with :
118
+ name : jupyterlite-xeus-python-sdist
119
+
120
+ - name : Setup conda
121
+ uses : conda-incubator/setup-miniconda@v2
122
+ with :
123
+ activate-environment : xeus-python-kernel
124
+ environment-file : environment.yml
125
+ python-version : " 3.10"
126
+ mamba-version : " *"
127
+
128
+ - name : Make sure the Mamba Python API is available
129
+ run : |
130
+ mamba install mamba
131
+ python -c "from mamba.api import create"
132
+
133
+ - name : Install
134
+ run : |
135
+ emsdk install 3.1.2
136
+ emsdk activate 3.1.2
137
+ pip install jupyterlite-xeus-python.tar.gz
138
+
139
+ - name : Run tests
140
+ run : pytest -rP tests/test_xeus_python_env.py
141
+
142
+ python-tests-mamba :
143
+ needs : build
144
+ runs-on : ubuntu-latest
145
+
146
+ steps :
147
+ - name : Checkout
148
+ uses : actions/checkout@v2
149
+
150
+ - uses : actions/download-artifact@v2
151
+ with :
152
+ name : jupyterlite-xeus-python-sdist
153
+
154
+ - name : Setup conda
155
+ uses : conda-incubator/setup-miniconda@v2
156
+ with :
157
+ activate-environment : xeus-python-kernel
158
+ environment-file : environment.yml
159
+ python-version : " 3.10"
160
+ mamba-version : " *"
161
+
162
+ - name : Install
163
+ run : |
164
+ emsdk install 3.1.2
165
+ emsdk activate 3.1.2
166
+ pip install jupyterlite-xeus-python.tar.gz
167
+
168
+ - name : Run tests
169
+ run : pytest -rP tests/test_xeus_python_env.py
170
+
171
+ python-tests-micromamba :
172
+ needs : build
173
+ runs-on : ubuntu-latest
174
+
175
+ steps :
176
+ - name : Checkout
177
+ uses : actions/checkout@v2
178
+
179
+ - uses : actions/download-artifact@v2
180
+ with :
181
+ name : jupyterlite-xeus-python-sdist
182
+
183
+ - name : Install mamba
184
+ uses : mamba-org/provision-with-micromamba@main
185
+ with :
186
+ micromamba-version : " 0.22.0"
187
+ environment-file : environment.yml
188
+ environment-name : xeus-python-kernel
189
+
190
+ - name : Install
191
+ run : |
192
+ emsdk install 3.1.2
193
+ emsdk activate 3.1.2
194
+ pip install jupyterlite-xeus-python.tar.gz
195
+
196
+ - name : Run tests
197
+ run : pytest -rP tests/test_xeus_python_env.py
198
+
199
+ python-tests-conda :
200
+ needs : build
201
+ runs-on : ubuntu-latest
202
+
203
+ steps :
204
+ - name : Checkout
205
+ uses : actions/checkout@v2
206
+
207
+ - uses : actions/download-artifact@v2
208
+ with :
209
+ name : jupyterlite-xeus-python-sdist
210
+
211
+ - name : Setup conda
212
+ uses : conda-incubator/setup-miniconda@v2
213
+ with :
214
+ activate-environment : xeus-python-kernel
215
+ environment-file : environment.yml
216
+ python-version : " 3.10"
217
+
218
+ - name : Install
219
+ run : |
220
+ emsdk install 3.1.2
221
+ emsdk activate 3.1.2
222
+ pip install jupyterlite-xeus-python.tar.gz
223
+
224
+ - name : Run tests
225
+ run : pytest -rP tests/test_xeus_python_env.py
0 commit comments