Skip to content

Commit 1626379

Browse files
committed
Add Github action
1 parent 8449a7c commit 1626379

File tree

6 files changed

+51
-191
lines changed

6 files changed

+51
-191
lines changed

.github/workflows/main.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
run:
13+
runs-on: ${{ matrix.os }}
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [ubuntu-latest, macos-latest]
19+
python-version: [3.9]
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
25+
- name: Setup conda
26+
uses: conda-incubator/setup-miniconda@v2
27+
with:
28+
mamba-version: "*"
29+
channels: conda-forge
30+
31+
- name: Mamba install dependencies
32+
shell: bash -l {0}
33+
run: mamba install python=${{ matrix.python-version }} pip yarn ipywidgets=7.6 jupyterlab=3 pytest nbval
34+
35+
- name: Install sidecar
36+
shell: bash -l {0}
37+
run: pip install -e .
38+
39+
- name: Check installation files
40+
shell: bash -l {0}
41+
run: |
42+
test -d $CONDA_PREFIX/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-sidecar
43+
test -f $CONDA_PREFIX/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-sidecar/package.json
44+
45+
- name: Check labextension
46+
shell: bash -l {0}
47+
run: jupyter labextension list 2>&1 | grep -ie "@jupyter-widgets/jupyterlab-sidecar.*enabled.*ok" -
48+
49+
- name: Run notebooks
50+
shell: bash -l {0}
51+
run: pytest .

.travis.yml

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

appveyor.yml

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

sidecar/tests/__init__.py

Whitespace-only changes.

sidecar/tests/conftest.py

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

sidecar/tests/test_example.py

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

0 commit comments

Comments
 (0)