@@ -9,6 +9,10 @@ concurrency:
9
9
group : ci-${{ github.ref }}
10
10
cancel-in-progress : true
11
11
12
+ defaults :
13
+ run :
14
+ shell : bash -eux
15
+
12
16
jobs :
13
17
build :
14
18
runs-on : ${{ matrix.os }}
@@ -30,37 +34,33 @@ jobs:
30
34
- name : Install the extension
31
35
run : |
32
36
cookiecutter . --config-file tests/testconfig.yaml --no-input
33
- pushd jupyter-widget-testwidgets
37
+ cd jupyter-widget-testwidgets
34
38
python -m pip install --upgrade -v -e ".[test, examples, docs]"
35
39
36
40
- name : Test the extension
41
+ working-directory : jupyter-widget-testwidgets
37
42
run : |
38
- pushd jupyter-widget-testwidgets
43
+ pytest
39
44
yarn
40
45
yarn run lint:check
41
-
42
- pytest
43
46
yarn run test
44
- popd
45
47
46
48
- name : Check docs can be build + links
49
+ working-directory : jupyter-widget-testwidgets/docs
47
50
run : |
48
51
sudo apt install -y pandoc
49
- pushd jupyter-widget-testwidgets/docs
50
52
make html
51
53
python -m pytest --check-links
52
- popd
53
54
54
55
- name : Validate extension usage
56
+ working-directory : jupyter-widget-testwidgets
55
57
run : |
56
58
# Validate nbextension
57
- jupyter nbextension list 2>&1 | grep -ie "jupyter-widget-testwidgets.*OK "
59
+ jupyter nbextension list 2>&1 | grep -ie "jupyter-widget-testwidgets.*enabled "
58
60
59
61
# Validate labextension
60
62
pip install -U jupyterlab~=3.0 jupyter_packaging~=0.7
61
63
# Make sure our lab extension was installed.
62
64
jupyter labextension list 2>&1 | grep -ie "jupyter-widget-testwidgets.*OK"
63
65
# Make sure our lab extension can be develop installed.
64
66
jupyter labextension develop . --overwrite
65
-
66
- popd
0 commit comments