Skip to content

Commit a02b1b7

Browse files
authored
Merge pull request #283 from ianhi/regular-testing
add regular test against maptlotlib master
2 parents 17c0bfa + 6187aeb commit a02b1b7

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/mpl-latest.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Latest Matplotlib Test
2+
3+
on:
4+
schedule:
5+
- cron: "0 12 * * 1" # monday at noon UTC
6+
push:
7+
branches:
8+
- master
9+
pull_request:
10+
branches:
11+
- master
12+
13+
jobs:
14+
run:
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
fail-fast: false
19+
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Setup conda
25+
uses: conda-incubator/setup-miniconda@v2
26+
with:
27+
mamba-version: "*"
28+
channels: conda-forge
29+
30+
- name: Install dependencies
31+
shell: bash -l {0}
32+
run: |
33+
mamba install python=${{ matrix.python-version }} pip nodejs ipywidgets=7.6 jupyter jupyterlab=3 pillow numpy flake8 pytest nbval
34+
pip install git+https://github.com/matplotlib/matplotlib.git
35+
36+
- name: Install ipympl
37+
shell: bash -l {0}
38+
run: pip install -e .
39+
40+
- name: Check installation files
41+
shell: bash -l {0}
42+
run: |
43+
test -d $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-matplotlib
44+
test -f $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-matplotlib/extension.js
45+
test -f $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-matplotlib/index.js
46+
test -d $CONDA_PREFIX/share/jupyter/labextensions/jupyter-matplotlib
47+
test -f $CONDA_PREFIX/share/jupyter/labextensions/jupyter-matplotlib/package.json
48+
49+
- name: Check nbextension and labextension
50+
shell: bash -l {0}
51+
run: |
52+
jupyter nbextension list 2>&1 | grep -ie "jupyter-matplotlib/extension.*enabled" -
53+
jupyter labextension list 2>&1 | grep -ie "jupyter-matplotlib.*enabled.*ok" -
54+
55+
- name: Run tests
56+
shell: bash -l {0}
57+
run: pytest .

0 commit comments

Comments
 (0)