@@ -11,7 +11,7 @@ defaults:
11
11
shell : bash -l {0}
12
12
13
13
jobs :
14
- build :
14
+ lint :
15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- name : Checkout
@@ -24,27 +24,35 @@ jobs:
24
24
environment-file : environment.yml
25
25
cache-environment : true
26
26
27
- - name : Dev install
27
+ - name : Lint
28
28
run : |
29
29
set -eux
30
30
jlpm
31
31
jlpm run build
32
32
jlpm run eslint: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@v2
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
35
46
36
47
- name : Build the extension
37
48
run : |
38
49
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
50
+ python -m build
43
51
44
52
- uses : actions/upload-artifact@v2
45
53
with :
46
- name : jupyterlite-xeus-python-sdist
47
- path : jupyterlite-xeus-python.tar.gz
54
+ name : dist ${{ github.run_number }}
55
+ path : ./dist
48
56
49
57
test_isolated :
50
58
needs : build
@@ -60,19 +68,21 @@ jobs:
60
68
architecture : ' x64'
61
69
- uses : actions/download-artifact@v2
62
70
with :
63
- name : jupyterlite-xeus-python-sdist
71
+ name : dist ${{ github.run_number }}
72
+ path : ./dist
64
73
- name : Install and Test
65
74
run : |
66
75
set -eux
67
76
# Remove NodeJS, twice to take care of system and locally installed node versions.
68
77
sudo rm -rf $(which node)
69
78
sudo rm -rf $(which node)
70
- pip install jupyterlite-xeus-python.tar.gz
79
+ pip install jupyterlite-xeus-python* .tar.gz
71
80
pip install "jupyterlab==4"
72
81
jupyter labextension list 2>&1 | grep -ie "@jupyterlite/xeus-python-kernel.*OK"
73
82
74
83
# TODO: add JupyterLite browser check
75
84
# python -m jupyterlab.browser_check --no-chrome-test
85
+ working-directory : dist
76
86
77
87
python-tests-mamba-python :
78
88
needs : build
84
94
85
95
- uses : actions/download-artifact@v2
86
96
with :
87
- name : jupyterlite-xeus-python-sdist
88
-
97
+ name : dist ${{ github.run_number }}
98
+ path : ./dist
99
+
89
100
- name : Install Conda environment with Micromamba
90
101
uses : mamba-org/setup-micromamba@v1
91
102
with :
99
110
python -c "from mamba.api import create"
100
111
101
112
- name : Install
102
- run : pip install jupyterlite-xeus-python.tar.gz
113
+ run : pip install jupyterlite-xeus-python*.tar.gz
114
+ working-directory : dist
103
115
104
116
- name : Run tests
105
117
run : pytest -rP test_xeus_python_env.py
@@ -115,8 +127,9 @@ jobs:
115
127
116
128
- uses : actions/download-artifact@v2
117
129
with :
118
- name : jupyterlite-xeus-python-sdist
119
-
130
+ name : dist ${{ github.run_number }}
131
+ path : ./dist
132
+
120
133
- name : Install Conda environment with Micromamba
121
134
uses : mamba-org/setup-micromamba@v1
122
135
with :
@@ -125,7 +138,8 @@ jobs:
125
138
cache-environment : true
126
139
127
140
- name : Install
128
- run : pip install jupyterlite-xeus-python.tar.gz
141
+ run : pip install jupyterlite-xeus-python*.tar.gz
142
+ working-directory : dist
129
143
130
144
- name : Run tests
131
145
run : pytest -rP test_xeus_python_env.py
@@ -141,7 +155,8 @@ jobs:
141
155
142
156
- uses : actions/download-artifact@v2
143
157
with :
144
- name : jupyterlite-xeus-python-sdist
158
+ name : dist ${{ github.run_number }}
159
+ path : ./dist
145
160
146
161
- name : Install Conda environment with Micromamba
147
162
uses : mamba-org/setup-micromamba@v1
@@ -151,7 +166,8 @@ jobs:
151
166
cache-environment : true
152
167
153
168
- name : Install
154
- run : pip install jupyterlite-xeus-python.tar.gz
169
+ run : pip install jupyterlite-xeus-python*.tar.gz
170
+ working-directory : dist
155
171
156
172
- name : Run tests
157
173
run : pytest -rP test_xeus_python_env.py
@@ -167,7 +183,8 @@ jobs:
167
183
168
184
- uses : actions/download-artifact@v2
169
185
with :
170
- name : jupyterlite-xeus-python-sdist
186
+ name : dist ${{ github.run_number }}
187
+ path : ./dist
171
188
172
189
- name : Install Conda environment with Micromamba
173
190
uses : mamba-org/setup-micromamba@v1
@@ -177,7 +194,8 @@ jobs:
177
194
cache-environment : true
178
195
179
196
- name : Install
180
- run : pip install jupyterlite-xeus-python.tar.gz
197
+ run : pip install jupyterlite-xeus-python*.tar.gz
198
+ working-directory : dist
181
199
182
200
- name : Run tests
183
201
run : pytest -rP test_xeus_python_env.py
0 commit comments