File tree 1 file changed +42
-0
lines changed
1 file changed +42
-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 : ["sphinx==3.0", "sphinx==4.0", "sphinx>4.4"]
74
+ steps :
75
+ - uses : actions/checkout@v2
76
+
77
+ - name : Python setup
78
+ uses : actions/setup-python@v2
79
+ with :
80
+ python-version : ${{ matrix.python-version }}
81
+
82
+ - name : Setup environment
83
+ run : |
84
+ python -m pip install --upgrade pip wheel setuptools
85
+ python -m pip install pytest pytest-cov
86
+ python -m pip install ${{ matrix.sphinx-version }}
87
+ python -m pip list
88
+
89
+ - name : Downgrade Jinja2 for sphinx<4
90
+ if : ${{ matrix.sphinx-version }} == 'sphinx<4.0.2'
91
+ run : python -m pip install jinja2==3.0.3 markupsafe==2.0.1 pydata-sphinx-theme==0.8.0
92
+
93
+ - name : Install
94
+ run : |
95
+ python -m pip install .
96
+ pip list
97
+
98
+ - name : Run test suite
99
+ run : |
100
+ pytest -v --pyargs numpydoc
101
+
102
+ - name : Make sure CLI works
103
+ run : |
104
+ python -m numpydoc numpydoc.tests.test_main._capture_stdout
105
+ echo '! python -m numpydoc numpydoc.tests.test_main._invalid_docstring' | bash
106
+ python -m numpydoc --validate numpydoc.tests.test_main._capture_stdout
107
+ 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