@@ -30,12 +30,12 @@ jobs:
3030 fail-fast : false
3131 matrix :
3232 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
3535 test :
36- - main
37- - auth
38- - helm
36+ - main
37+ - auth
38+ - helm
3939 include :
4040 # Chart.yaml contains the chart's oldest supported k8s version, we
4141 # want to test against that. We also test against the oldest known
@@ -68,16 +68,16 @@ jobs:
6868
6969 - name : Setup OS level dependencies
7070 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
7777
7878 - uses : actions/setup-node@v2-beta
7979 with :
80- node-version : ' 14 '
80+ node-version : " 14 "
8181
8282 - name : Cache npm
8383 uses : actions/cache@v2
@@ -89,12 +89,12 @@ jobs:
8989
9090 - name : Run webpack to build static assets
9191 run : |
92- npm install
93- npm run webpack
92+ npm install
93+ npm run webpack
9494
9595 - uses : actions/setup-python@v2
9696 with :
97- python-version : ' 3.8'
97+ python-version : " 3.8"
9898
9999 - name : Cache pip
100100 uses : actions/cache@v2
@@ -107,8 +107,8 @@ jobs:
107107
108108 - name : Update pip
109109 run : |
110- pip install --upgrade pip
111- pip install --upgrade setuptools wheel
110+ pip install --upgrade pip
111+ pip install --upgrade setuptools wheel
112112
113113 - name : Setup Python package dependencies
114114 run : |
@@ -118,20 +118,20 @@ jobs:
118118 - name : Install JupyterHub chart for main tests
119119 if : matrix.test == 'main'
120120 run : |
121- ./testing/local-binder-k8s-hub/install-jupyterhub-chart
121+ ./testing/local-binder-k8s-hub/install-jupyterhub-chart
122122
123123 - name : Install JupyterHub chart for auth tests
124124 if : matrix.test == 'auth'
125125 run : |
126- ./testing/local-binder-k8s-hub/install-jupyterhub-chart --auth
126+ ./testing/local-binder-k8s-hub/install-jupyterhub-chart --auth
127127
128128 - name : Use chartpress to create the helm chart
129129 if : matrix.test == 'helm'
130130 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
135135
136136 - name : Generate values.schema.json from schema.yaml
137137 if : matrix.test == 'helm'
@@ -147,10 +147,10 @@ jobs:
147147 - name : Validate the chart against the k8s API
148148 if : matrix.test == 'helm'
149149 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
154154
155155 - name : " (Upgrade) Install ${{ matrix.upgrade-from }} chart"
156156 if : matrix.test-variation == 'upgrade'
@@ -210,20 +210,20 @@ jobs:
210210
211211 - name : Await and curl JupyterHub
212212 run : |
213- . ci/common
214- await_jupyterhub
213+ . ci/common
214+ await_jupyterhub
215215
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
218218
219219 - name : Await and curl BinderHub
220220 if : matrix.test == 'helm'
221221 run : |
222- . ci/common
223- await_binderhub binderhub-test
222+ . ci/common
223+ await_binderhub binderhub-test
224224
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
227227
228228 - name : Run main tests
229229 if : matrix.test == 'main'
@@ -238,8 +238,8 @@ jobs:
238238 - name : Run helm tests
239239 if : matrix.test == 'helm'
240240 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
243243
244244 # GitHub Action reference: https://github.com/jupyterhub/action-k8s-namespace-report
245245 - name : Kubernetes namespace report
@@ -260,16 +260,16 @@ jobs:
260260
261261 - name : Setup OS level dependencies
262262 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
269269
270270 - uses : actions/setup-node@v2-beta
271271 with :
272- node-version : ' 14 '
272+ node-version : " 14 "
273273
274274 - name : Cache npm
275275 uses : actions/cache@v2
@@ -281,7 +281,7 @@ jobs:
281281
282282 - uses : actions/setup-python@v2
283283 with :
284- python-version : ' 3.8'
284+ python-version : " 3.8"
285285
286286 - name : Cache pip
287287 uses : actions/cache@v2
@@ -294,8 +294,8 @@ jobs:
294294
295295 - name : Update pip
296296 run : |
297- pip install --upgrade pip
298- pip install --upgrade setuptools wheel
297+ pip install --upgrade pip
298+ pip install --upgrade setuptools wheel
299299
300300 - name : Setup Python package dependencies
301301 run : |
@@ -307,12 +307,12 @@ jobs:
307307
308308 - name : Await and curl JupyterHub
309309 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
313313
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
316316
317317 - name : Run remote tests
318318 run : |
0 commit comments