Skip to content

Commit bd0946b

Browse files
authored
Merge pull request #55 from robots-from-jupyter/rf40
Add support for robotframework==4.0b1
2 parents 55ef347 + 0395434 commit bd0946b

File tree

10 files changed

+2557
-43
lines changed

10 files changed

+2557
-43
lines changed

.github/workflows/smoketest.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: "smoketest"
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
smoketest:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
robotframework-version: [rf31, rf32, rf40]
11+
steps:
12+
- uses: actions/checkout@v2.3.4
13+
- uses: cachix/install-nix-action@v12
14+
with:
15+
nix_path: nixpkgs=channel:nixos-unstable
16+
- uses: cachix/cachix-action@v8
17+
with:
18+
name: robots-from-jupyter
19+
- run: nix-shell setup.nix -A shell --argstr robotframework ${{ matrix.robotframework-version }} --run "make test && python -m robotkernel.install && jupyter nbconvert --execute tests/Smoketest.ipynb && nbrobot -v BROWSER:headlessfirefox -F ipynb tests atest"

.travis.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
Robotkernel
22
===========
33

4+
|Smoketest Badge|
5+
46
RobotKernel is a `Robot Framework`_ IPython_ kernel for `Jupyter Notebook`_ and JupyterLab_. It powers RobotLab_ – the Robot Framework JupyterLab distribution. Check a `video to see it in action`_ and `read the documentation`_.
57

68
RobotKernel requires Python 3.6 or later with setuptools 40.5.0 later and Robot Framework Robot Framework 3.1 or later.
79

10+
.. |Smoketest Badge| image:: https://github.com/robots-from-jupyter/robotkernel/workflows/smoketest/badge.svg
811
.. _video to see it in action: https://youtu.be/uYGh9_c3b7s
912
.. _read the documentation: https://robots-from-jupyter.github.io/robotkernel/
1013
.. _Robot Framework: http://robotframework.org/

binder/environment.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
name: robotkernel
2+
23
channels:
34
- conda-forge
5+
- nodefaults
6+
47
dependencies:
58
- opencv
69
- python >=3.6,<3.9.0a0
710
- jupyterlab >=2.1.1,<2.2
8-
- nodejs >=11,<12
11+
- nodejs >=14,<15
12+
- geckodriver >=0.26.0,<0.27.0
913
- pip
1014
- pip:
1115
- matplotlib==3.1.2
1216
- pillow==7.1.2
1317
- requests==2.22.0
1418
- RESTinstance==1.0.2
1519
- rise==5.6.1
16-
- robotframework==3.2
20+
- robotframework==4.0b1
1721
- robotframework-faker==5.0.0
1822
- robotframework-seleniumlibrary==4.3.0
1923
- robotframework-seleniumscreenshots==0.9.5

binder/postBuild

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
#!/bin/bash
2-
curl -L https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz > geckodriver.tar.gz
3-
tar -xzf geckodriver.tar.gz -C /srv/conda/bin/
4-
pip install -e .
2+
set -eux
3+
pip install -e . -vv
54
python -m robotkernel.install --sys-prefix
65
jupyter serverextension enable --sys-prefix --py jupyter_starters
7-
cd src/jupyterlab_robotmode && npm install && npm run build && cd ../..
8-
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
9-
jupyter labextension install src/jupyterlab_robotmode --no-build
10-
jupyter labextension install @deathbeds/jupyterlab-starters@0.3.0-a0 --no-build
11-
jupyter lab build --minimize=True --dev-build=False --debug
6+
7+
pushd src/jupyterlab_robotmode
8+
npm install
9+
npm run build
10+
jupyter labextension install --no-build $(npm pack)
11+
popd
12+
13+
jupyter labextension install --no-build \
14+
@deathbeds/jupyterlab-starters@0.3.0-a0 \
15+
@jupyter-widgets/jupyterlab-manager
16+
17+
jupyter lab build --minimize=False --debug
18+
19+
jupyter labextension list
20+
1221
mkdir -p .jupyter/jupyter_notebook_config.d
1322
cp src/robotkernel/resources/starter/robotkernel-starter.json .jupyter/jupyter_notebook_config.d

0 commit comments

Comments
 (0)