@@ -30,12 +30,12 @@ jobs:
30
30
fail-fast : false
31
31
matrix :
32
32
k3s-channel :
33
- # Available channels: https://github.com/k3s-io/k3s/blob/HEAD/channel.yaml
34
- - latest
33
+ # Available channels: https://github.com/k3s-io/k3s/blob/HEAD/channel.yaml
34
+ - latest
35
35
test :
36
- - main
37
- - auth
38
- - helm
36
+ - main
37
+ - auth
38
+ - helm
39
39
include :
40
40
# Chart.yaml contains the chart's oldest supported k8s version, we
41
41
# want to test against that. We also test against the oldest known
@@ -68,16 +68,16 @@ jobs:
68
68
69
69
- name : Setup OS level dependencies
70
70
run : |
71
- sudo apt-get update
72
- sudo apt-get install --yes \
73
- build-essential \
74
- curl \
75
- libcurl4-openssl-dev \
76
- libssl-dev
71
+ sudo apt-get update
72
+ sudo apt-get install --yes \
73
+ build-essential \
74
+ curl \
75
+ libcurl4-openssl-dev \
76
+ libssl-dev
77
77
78
78
- uses : actions/setup-node@v2-beta
79
79
with :
80
- node-version : ' 14 '
80
+ node-version : " 14 "
81
81
82
82
- name : Cache npm
83
83
uses : actions/cache@v2
@@ -89,12 +89,12 @@ jobs:
89
89
90
90
- name : Run webpack to build static assets
91
91
run : |
92
- npm install
93
- npm run webpack
92
+ npm install
93
+ npm run webpack
94
94
95
95
- uses : actions/setup-python@v2
96
96
with :
97
- python-version : ' 3.8'
97
+ python-version : " 3.8"
98
98
99
99
- name : Cache pip
100
100
uses : actions/cache@v2
@@ -107,8 +107,8 @@ jobs:
107
107
108
108
- name : Update pip
109
109
run : |
110
- pip install --upgrade pip
111
- pip install --upgrade setuptools wheel
110
+ pip install --upgrade pip
111
+ pip install --upgrade setuptools wheel
112
112
113
113
- name : Setup Python package dependencies
114
114
run : |
@@ -118,20 +118,20 @@ jobs:
118
118
- name : Install JupyterHub chart for main tests
119
119
if : matrix.test == 'main'
120
120
run : |
121
- ./testing/local-binder-k8s-hub/install-jupyterhub-chart
121
+ ./testing/local-binder-k8s-hub/install-jupyterhub-chart
122
122
123
123
- name : Install JupyterHub chart for auth tests
124
124
if : matrix.test == 'auth'
125
125
run : |
126
- ./testing/local-binder-k8s-hub/install-jupyterhub-chart --auth
126
+ ./testing/local-binder-k8s-hub/install-jupyterhub-chart --auth
127
127
128
128
- name : Use chartpress to create the helm chart
129
129
if : matrix.test == 'helm'
130
130
run : |
131
- # Use chartpress to create the helm chart and build its images
132
- helm dependency update ./helm-chart/binderhub
133
- (cd helm-chart && chartpress)
134
- git --no-pager diff --color=always
131
+ # Use chartpress to create the helm chart and build its images
132
+ helm dependency update ./helm-chart/binderhub
133
+ (cd helm-chart && chartpress)
134
+ git --no-pager diff --color=always
135
135
136
136
- name : Generate values.schema.json from schema.yaml
137
137
if : matrix.test == 'helm'
@@ -147,10 +147,10 @@ jobs:
147
147
- name : Validate the chart against the k8s API
148
148
if : matrix.test == 'helm'
149
149
run : |
150
- helm template --validate binderhub-test helm-chart/binderhub \
151
- --values testing/k8s-binder-k8s-hub/binderhub-chart-config.yaml \
152
- --set config.BinderHub.hub_url=http://localhost:30902 \
153
- --set config.GitHubRepoProvider.access_token=$GITHUB_ACCESS_TOKEN
150
+ helm template --validate binderhub-test helm-chart/binderhub \
151
+ --values testing/k8s-binder-k8s-hub/binderhub-chart-config.yaml \
152
+ --set config.BinderHub.hub_url=http://localhost:30902 \
153
+ --set config.GitHubRepoProvider.access_token=$GITHUB_ACCESS_TOKEN
154
154
155
155
- name : " (Upgrade) Install ${{ matrix.upgrade-from }} chart"
156
156
if : matrix.test-variation == 'upgrade'
@@ -210,20 +210,20 @@ jobs:
210
210
211
211
- name : Await and curl JupyterHub
212
212
run : |
213
- . ci/common
214
- await_jupyterhub
213
+ . ci/common
214
+ await_jupyterhub
215
215
216
- echo curl http://localhost:30902/hub/api/ should print the JupyterHub version
217
- curl http://localhost:30902/hub/api/ --max-time 5 --retry 5 --retry-delay 1 --retry-connrefused
216
+ echo curl http://localhost:30902/hub/api/ should print the JupyterHub version
217
+ curl http://localhost:30902/hub/api/ --max-time 5 --retry 5 --retry-delay 1 --retry-connrefused
218
218
219
219
- name : Await and curl BinderHub
220
220
if : matrix.test == 'helm'
221
221
run : |
222
- . ci/common
223
- await_binderhub binderhub-test
222
+ . ci/common
223
+ await_binderhub binderhub-test
224
224
225
- echo curl http://localhost:30901/health to check BinderHub\'s health
226
- curl http://localhost:30901/health --max-time 5 --retry 5 --retry-delay 1 --retry-connrefused
225
+ echo curl http://localhost:30901/health to check BinderHub\'s health
226
+ curl http://localhost:30901/health --max-time 5 --retry 5 --retry-delay 1 --retry-connrefused
227
227
228
228
- name : Run main tests
229
229
if : matrix.test == 'main'
@@ -238,8 +238,8 @@ jobs:
238
238
- name : Run helm tests
239
239
if : matrix.test == 'helm'
240
240
run : |
241
- export BINDER_URL=http://localhost:30901
242
- pytest -m "remote" -v --maxfail=10 --cov binderhub --durations=10 --color=yes
241
+ export BINDER_URL=http://localhost:30901
242
+ pytest -m "remote" -v --maxfail=10 --cov binderhub --durations=10 --color=yes
243
243
244
244
# GitHub Action reference: https://github.com/jupyterhub/action-k8s-namespace-report
245
245
- name : Kubernetes namespace report
@@ -260,16 +260,16 @@ jobs:
260
260
261
261
- name : Setup OS level dependencies
262
262
run : |
263
- sudo apt-get update
264
- sudo apt-get install --yes \
265
- build-essential \
266
- curl \
267
- libcurl4-openssl-dev \
268
- libssl-dev
263
+ sudo apt-get update
264
+ sudo apt-get install --yes \
265
+ build-essential \
266
+ curl \
267
+ libcurl4-openssl-dev \
268
+ libssl-dev
269
269
270
270
- uses : actions/setup-node@v2-beta
271
271
with :
272
- node-version : ' 14 '
272
+ node-version : " 14 "
273
273
274
274
- name : Cache npm
275
275
uses : actions/cache@v2
@@ -281,7 +281,7 @@ jobs:
281
281
282
282
- uses : actions/setup-python@v2
283
283
with :
284
- python-version : ' 3.8'
284
+ python-version : " 3.8"
285
285
286
286
- name : Cache pip
287
287
uses : actions/cache@v2
@@ -294,8 +294,8 @@ jobs:
294
294
295
295
- name : Update pip
296
296
run : |
297
- pip install --upgrade pip
298
- pip install --upgrade setuptools wheel
297
+ pip install --upgrade pip
298
+ pip install --upgrade setuptools wheel
299
299
300
300
- name : Setup Python package dependencies
301
301
run : |
@@ -307,12 +307,12 @@ jobs:
307
307
308
308
- name : Await and curl JupyterHub
309
309
run : |
310
- cd testing/local-binder-local-hub
311
- jupyterhub --config=jupyterhub_config.py > jupyterhub.log 2>&1 &
312
- sleep 5
310
+ cd testing/local-binder-local-hub
311
+ jupyterhub --config=jupyterhub_config.py > jupyterhub.log 2>&1 &
312
+ sleep 5
313
313
314
- echo curl http://localhost:8000/hub/api/ should print the JupyterHub version
315
- curl http://localhost:8000/hub/api/ --max-time 5 --retry 5 --retry-delay 1 --retry-connrefused
314
+ echo curl http://localhost:8000/hub/api/ should print the JupyterHub version
315
+ curl http://localhost:8000/hub/api/ --max-time 5 --retry 5 --retry-delay 1 --retry-connrefused
316
316
317
317
- name : Run remote tests
318
318
run : |
0 commit comments