@@ -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,33 @@ 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 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
35
46
36
47
- 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
43
49
44
50
- uses : actions/upload-artifact@v2
45
51
with :
46
- name : jupyterlite-xeus-python-sdist
47
- path : jupyterlite-xeus-python.tar.gz
52
+ name : dist ${{ github.run_number }}
53
+ path : ./dist
48
54
49
55
test_isolated :
50
56
needs : build
@@ -60,19 +66,21 @@ jobs:
60
66
architecture : ' x64'
61
67
- uses : actions/download-artifact@v2
62
68
with :
63
- name : jupyterlite-xeus-python-sdist
69
+ name : dist ${{ github.run_number }}
70
+ path : ./dist
64
71
- name : Install and Test
65
72
run : |
66
73
set -eux
67
74
# Remove NodeJS, twice to take care of system and locally installed node versions.
68
75
sudo rm -rf $(which node)
69
76
sudo rm -rf $(which node)
70
- pip install jupyterlite-xeus-python .tar.gz
77
+ pip install jupyterlite_xeus_python* .tar.gz
71
78
pip install "jupyterlab==4"
72
79
jupyter labextension list 2>&1 | grep -ie "@jupyterlite/xeus-python-kernel.*OK"
73
80
74
81
# TODO: add JupyterLite browser check
75
82
# python -m jupyterlab.browser_check --no-chrome-test
83
+ working-directory : dist
76
84
77
85
python-tests-mamba-python :
78
86
needs : build
84
92
85
93
- uses : actions/download-artifact@v2
86
94
with :
87
- name : jupyterlite-xeus-python-sdist
95
+ name : dist ${{ github.run_number }}
96
+ path : ./dist
88
97
89
98
- name : Install Conda environment with Micromamba
90
99
uses : mamba-org/setup-micromamba@v1
99
108
python -c "from mamba.api import create"
100
109
101
110
- name : Install
102
- run : pip install jupyterlite-xeus-python.tar.gz
111
+ run : pip install jupyterlite_xeus_python*.tar.gz
112
+ working-directory : dist
103
113
104
114
- name : Run tests
105
115
run : pytest -rP test_xeus_python_env.py
@@ -115,7 +125,8 @@ jobs:
115
125
116
126
- uses : actions/download-artifact@v2
117
127
with :
118
- name : jupyterlite-xeus-python-sdist
128
+ name : dist ${{ github.run_number }}
129
+ path : ./dist
119
130
120
131
- name : Install Conda environment with Micromamba
121
132
uses : mamba-org/setup-micromamba@v1
@@ -125,7 +136,8 @@ jobs:
125
136
cache-environment : true
126
137
127
138
- name : Install
128
- run : pip install jupyterlite-xeus-python.tar.gz
139
+ run : pip install jupyterlite_xeus_python*.tar.gz
140
+ working-directory : dist
129
141
130
142
- name : Run tests
131
143
run : pytest -rP test_xeus_python_env.py
@@ -141,7 +153,8 @@ jobs:
141
153
142
154
- uses : actions/download-artifact@v2
143
155
with :
144
- name : jupyterlite-xeus-python-sdist
156
+ name : dist ${{ github.run_number }}
157
+ path : ./dist
145
158
146
159
- name : Install Conda environment with Micromamba
147
160
uses : mamba-org/setup-micromamba@v1
@@ -151,7 +164,8 @@ jobs:
151
164
cache-environment : true
152
165
153
166
- name : Install
154
- run : pip install jupyterlite-xeus-python.tar.gz
167
+ run : pip install jupyterlite_xeus_python*.tar.gz
168
+ working-directory : dist
155
169
156
170
- name : Run tests
157
171
run : pytest -rP test_xeus_python_env.py
@@ -167,7 +181,8 @@ jobs:
167
181
168
182
- uses : actions/download-artifact@v2
169
183
with :
170
- name : jupyterlite-xeus-python-sdist
184
+ name : dist ${{ github.run_number }}
185
+ path : ./dist
171
186
172
187
- name : Install Conda environment with Micromamba
173
188
uses : mamba-org/setup-micromamba@v1
@@ -177,7 +192,8 @@ jobs:
177
192
cache-environment : true
178
193
179
194
- name : Install
180
- run : pip install jupyterlite-xeus-python.tar.gz
195
+ run : pip install jupyterlite_xeus_python*.tar.gz
196
+ working-directory : dist
181
197
182
198
- name : Run tests
183
199
run : pytest -rP test_xeus_python_env.py
0 commit comments