File tree Expand file tree Collapse file tree 5 files changed +168
-11
lines changed Expand file tree Collapse file tree 5 files changed +168
-11
lines changed Original file line number Diff line number Diff line change @@ -26,22 +26,16 @@ jobs:
2626 - name : Checkout
2727 uses : actions/checkout@v2
2828
29- - name : Setup conda
30- uses : conda-incubator /setup-miniconda@v2
29+ - name : Setup Python ${{ matrix.python-version }}
30+ uses : actions /setup-python@v4
3131 with :
3232 python-version : ${{ matrix.python-version }}
33- mamba-version : " *"
34- auto-activate-base : false
35- channels : conda-forge
3633
37- - name : Install dependencies
38- run : mamba install ipython matplotlib flake8
39-
40- - name : Install package
41- run : pip install .
34+ - name : Install package with test dependencies
35+ run : pip install .[test]
4236
4337 - name : Test installation
44- run : python -c 'from matplotlib_inline.backend_inline import show'
38+ run : pytest -v
4539
4640 - name : Test flake8
4741 run : flake8 matplotlib_inline --ignore=E501,W504,W503
Original file line number Diff line number Diff line change 22dist
33build
44__pycache__
5+ .ipynb_checkpoints
Original file line number Diff line number Diff line change @@ -42,8 +42,30 @@ requires-python = ">=3.8"
4242[project .entry-points ."matplotlib .backend" ]
4343inline = " matplotlib_inline.backend_inline"
4444
45+ [project .optional-dependencies ]
46+ test = [
47+ " flake8" ,
48+ " matplotlib" ,
49+ " nbdime" ,
50+ " nbval" ,
51+ " notebook" ,
52+ " pytest" ,
53+ ]
54+
4555[project .urls ]
4656Homepage = " https://github.com/ipython/matplotlib-inline"
4757
4858[tool .setuptools .dynamic ]
4959version = {attr = " matplotlib_inline.__version__" }
60+
61+ [tool .pytest .ini_options ]
62+ xfail_strict = true
63+ log_cli_level = " info"
64+ addopts = [
65+ " --nbval" ,
66+ " --nbdime" ,
67+ " --ignore=tests/notebooks/.ipynb_checkpoints/*" ,
68+ ]
69+ testpaths = [
70+ " tests" ,
71+ ]
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1+ def test_import ():
2+ from matplotlib_inline .backend_inline import show
3+ show ()
You can’t perform that action at this time.
0 commit comments