@@ -105,3 +105,61 @@ jobs:
105
105
echo '! python -m numpydoc numpydoc.tests.test_main._invalid_docstring' | bash
106
106
python -m numpydoc --validate numpydoc.tests.test_main._capture_stdout
107
107
echo '! python -m numpydoc --validate numpydoc.tests.test_main._docstring_with_errors' | bash
108
+
109
+ prerelease :
110
+ runs-on : ${{ matrix.os }}-latest
111
+ strategy :
112
+ matrix :
113
+ os : [ubuntu]
114
+ python-version : ["3.9", "3.10"]
115
+ steps :
116
+ - uses : actions/checkout@v2
117
+
118
+ - name : Python setup
119
+ uses : actions/setup-python@v2
120
+ with :
121
+ python-version : ${{ matrix.python-version }}
122
+
123
+ - name : Setup environment
124
+ run : |
125
+ python -m pip install --upgrade pip wheel setuptools
126
+ # We can't use our requirements file b/c pydata-sphinx-theme has upperbounds on deps
127
+ # python -m pip install --pre -r requirements/test.txt -r doc/requirements.txt
128
+ python -m pip install --upgrade --pre numpy
129
+ python -m pip install --upgrade --pre matplotlib
130
+ python -m pip install --upgrade --pre pydata-sphinx-theme
131
+ python -m pip install --upgrade --pre sphinx
132
+ python -m pip install --upgrade --pre pytest
133
+ python -m pip install --upgrade --pre pytest-cov
134
+ python -m pip install codecov
135
+ python -m pip list
136
+
137
+ - name : Install
138
+ run : |
139
+ python -m pip install .
140
+ pip list
141
+
142
+ - name : Run test suite
143
+ run : |
144
+ pytest -v --pyargs .
145
+
146
+ - name : Test coverage
147
+ run : |
148
+ codecov
149
+
150
+ - name : Make sure CLI works
151
+ run : |
152
+ python -m numpydoc numpydoc.tests.test_main._capture_stdout
153
+ echo '! python -m numpydoc numpydoc.tests.test_main._invalid_docstring' | bash
154
+ python -m numpydoc --validate numpydoc.tests.test_main._capture_stdout
155
+ echo '! python -m numpydoc --validate numpydoc.tests.test_main._docstring_with_errors' | bash
156
+
157
+ - name : Setup for doc build
158
+ run : |
159
+ sudo apt-get update
160
+ sudo apt install texlive texlive-latex-extra latexmk dvipng
161
+
162
+ - name : Build documentation
163
+ run : |
164
+ make -C doc html SPHINXOPTS="-nT"
165
+ make -C doc latexpdf SPHINXOPTS="-nT"
0 commit comments