File tree 5 files changed +168
-11
lines changed
5 files changed +168
-11
lines changed Original file line number Diff line number Diff line change @@ -26,22 +26,16 @@ jobs:
26
26
- name : Checkout
27
27
uses : actions/checkout@v2
28
28
29
- - name : Setup conda
30
- uses : conda-incubator /setup-miniconda@v2
29
+ - name : Setup Python ${{ matrix.python-version }}
30
+ uses : actions /setup-python@v4
31
31
with :
32
32
python-version : ${{ matrix.python-version }}
33
- mamba-version : " *"
34
- auto-activate-base : false
35
- channels : conda-forge
36
33
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]
42
36
43
37
- name : Test installation
44
- run : python -c 'from matplotlib_inline.backend_inline import show'
38
+ run : pytest -v
45
39
46
40
- name : Test flake8
47
41
run : flake8 matplotlib_inline --ignore=E501,W504,W503
Original file line number Diff line number Diff line change 2
2
dist
3
3
build
4
4
__pycache__
5
+ .ipynb_checkpoints
Original file line number Diff line number Diff line change @@ -42,8 +42,30 @@ requires-python = ">=3.8"
42
42
[project .entry-points ."matplotlib .backend" ]
43
43
inline = " matplotlib_inline.backend_inline"
44
44
45
+ [project .optional-dependencies ]
46
+ test = [
47
+ " flake8" ,
48
+ " matplotlib" ,
49
+ " nbdime" ,
50
+ " nbval" ,
51
+ " notebook" ,
52
+ " pytest" ,
53
+ ]
54
+
45
55
[project .urls ]
46
56
Homepage = " https://github.com/ipython/matplotlib-inline"
47
57
48
58
[tool .setuptools .dynamic ]
49
59
version = {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