-
Notifications
You must be signed in to change notification settings - Fork 72
49 lines (40 loc) · 1.28 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
run:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup conda
uses: conda-incubator/setup-miniconda@v2
with:
mamba-version: "*"
channels: conda-forge
- name: Conda install dependencies
shell: bash -l {0}
run: conda install python=${{ matrix.python-version }} pip cookiecutter ipywidgets yarn
- name: Generate test project
shell: bash -l {0}
run: cookiecutter --config-file tests/testconfig.yml --no-input .
- name: Run pip install
shell: bash -l {0}
run: pip install ./jupyter-widget-testwidgets
- name: Test install
shell: bash -l {0}
run: |
test -d $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-widget-testwidgets
test -f $CONDA_PREFIX/etc/jupyter/nbconfig/notebook.d/jupyter-widget-testwidgets.json
test -d $CONDA_PREFIX/share/jupyter/labextensions/jupyter-widget-testwidgets
test -f $CONDA_PREFIX/share/jupyter/labextensions/jupyter-widget-testwidgets/package.json