File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 63
63
run : |
64
64
make -C doc html SPHINXOPTS="-nT"
65
65
make -C doc latexpdf SPHINXOPTS="-nT"
66
+
67
+ test-dev :
68
+ runs-on : ${{ matrix.os }}-latest
69
+ strategy :
70
+ matrix :
71
+ os : [Ubuntu]
72
+ python-version : ["3.11-dev"]
73
+ sphinx-version :
74
+ ["sphinx==3.0", "sphinx==3.5", "sphinx==4.0", "sphinx>4.4"]
75
+ steps :
76
+ - uses : actions/checkout@v2
77
+
78
+ - name : Python setup
79
+ uses : actions/setup-python@v2
80
+ with :
81
+ python-version : ${{ matrix.python-version }}
82
+
83
+ - name : Setup environment
84
+ run : |
85
+ python -m pip install --upgrade pip wheel setuptools
86
+ python -m pip install pytest pytest-cov
87
+ python -m pip install ${{ matrix.sphinx-version }}
88
+ python -m pip list
89
+
90
+ - name : Downgrade Jinja2 for sphinx<4
91
+ if : ${{ matrix.sphinx-version }} == 'sphinx<4.0.2'
92
+ run : python -m pip install jinja2==3.0.3 markupsafe==2.0.1 pydata-sphinx-theme==0.8.0
93
+
94
+ - name : Install
95
+ run : |
96
+ python -m pip install .
97
+ pip list
98
+
99
+ - name : Run test suite
100
+ run : |
101
+ pytest -v --pyargs numpydoc
102
+
103
+ - name : Make sure CLI works
104
+ run : |
105
+ python -m numpydoc numpydoc.tests.test_main._capture_stdout
106
+ echo '! python -m numpydoc numpydoc.tests.test_main._invalid_docstring' | bash
107
+ python -m numpydoc --validate numpydoc.tests.test_main._capture_stdout
108
+ echo '! python -m numpydoc --validate numpydoc.tests.test_main._docstring_with_errors' | bash
You can’t perform that action at this time.
0 commit comments