Skip to content

Commit d379d95

Browse files
committed
Install JupyterLab for the Javascript tests (to build jupyterlab_widgets)
1 parent 1b96f21 commit d379d95

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

.github/workflows/tests.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222
run: |
2323
sudo apt-get install -y pandoc
2424
python -m pip install --upgrade pip
25-
pip install file://$PWD#egg=ipywidgets
26-
pip install -r ./docs/requirements.txt
25+
python -m pip install file://$PWD#egg=ipywidgets
26+
python -m pip install -r ./docs/requirements.txt
2727
- name: Build docs
2828
run: |
2929
cd docs
@@ -34,13 +34,26 @@ jobs:
3434

3535
steps:
3636
- uses: actions/checkout@v2
37-
- name: Use Node.js 10.x
38-
uses: actions/setup-node@v1
37+
- name: Set up Python
38+
uses: actions/setup-python@v1
3939
with:
40-
node-version: 10.x
40+
python-version: 3.7
41+
- uses: actions/cache@v1
42+
with:
43+
path: ~/.cache/pip
44+
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}-${{hashFiles('**/requirements.txt')}}
45+
restore-keys: |
46+
${{ runner.os }}-pip-
4147
- name: Install dependencies
4248
run: |
4349
sudo apt-get install -y firefox
50+
python -m pip install --upgrade pip
51+
python -m pip install jupyterlab~=3.0
52+
53+
- name: Use Node.js 12.x
54+
uses: actions/setup-node@v1
55+
with:
56+
node-version: 12.x
4457
- name: Get yarn cache
4558
id: yarn-cache
4659
run: echo "::set-output name=dir::$(yarn cache dir)"
@@ -50,6 +63,7 @@ jobs:
5063
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
5164
restore-keys: |
5265
${{ runner.os }}-yarn-
66+
5367
- name: yarn install, build, test
5468
run: |
5569
yarn install --frozen-lockfile

0 commit comments

Comments
 (0)