Skip to content

Commit 8bdf1a0

Browse files
committed
more workflow cleanup
1 parent d319794 commit 8bdf1a0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ concurrency:
99
group: ci-${{ github.ref }}
1010
cancel-in-progress: true
1111

12+
defaults:
13+
run:
14+
shell: bash -eux
15+
1216
jobs:
1317
build:
1418
runs-on: ${{ matrix.os }}
@@ -30,37 +34,33 @@ jobs:
3034
- name: Install the extension
3135
run: |
3236
cookiecutter . --config-file tests/testconfig.yaml --no-input
33-
pushd jupyter-widget-testwidgets
37+
cd jupyter-widget-testwidgets
3438
python -m pip install --upgrade -v -e ".[test, examples, docs]"
3539
3640
- name: Test the extension
41+
working-directory: jupyter-widget-testwidgets
3742
run: |
38-
pushd jupyter-widget-testwidgets
43+
pytest
3944
yarn
4045
yarn run lint:check
41-
42-
pytest
4346
yarn run test
44-
popd
4547
4648
- name: Check docs can be build + links
49+
working-directory: jupyter-widget-testwidgets/docs
4750
run: |
4851
sudo apt install -y pandoc
49-
pushd jupyter-widget-testwidgets/docs
5052
make html
5153
python -m pytest --check-links
52-
popd
5354
5455
- name: Validate extension usage
56+
working-directory: jupyter-widget-testwidgets
5557
run: |
5658
# 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"
5860
5961
# Validate labextension
6062
pip install -U jupyterlab~=3.0 jupyter_packaging~=0.7
6163
# Make sure our lab extension was installed.
6264
jupyter labextension list 2>&1 | grep -ie "jupyter-widget-testwidgets.*OK"
6365
# Make sure our lab extension can be develop installed.
6466
jupyter labextension develop . --overwrite
65-
66-
popd

0 commit comments

Comments
 (0)