Skip to content

Commit 7eec71f

Browse files
Test prereleases of requirements (#395)
* Test prereleases of requirements * Test w/out numpy prerelease * Test numpy rc * Test again
1 parent 198f6e8 commit 7eec71f

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/test.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,55 @@ jobs:
105105
echo '! python -m numpydoc numpydoc.tests.test_main._invalid_docstring' | bash
106106
python -m numpydoc --validate numpydoc.tests.test_main._capture_stdout
107107
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+
python -m pip install --pre -r requirements/test.txt -r doc/requirements.txt
127+
python -m pip install docutils==0.17.1 # FIXME
128+
python -m pip install codecov
129+
python -m pip list
130+
131+
- name: Install
132+
run: |
133+
python -m pip install .
134+
pip list
135+
136+
- name: Run test suite
137+
run: |
138+
pytest -v --pyargs .
139+
140+
- name: Test coverage
141+
run: |
142+
codecov
143+
144+
- name: Make sure CLI works
145+
run: |
146+
python -m numpydoc numpydoc.tests.test_main._capture_stdout
147+
echo '! python -m numpydoc numpydoc.tests.test_main._invalid_docstring' | bash
148+
python -m numpydoc --validate numpydoc.tests.test_main._capture_stdout
149+
echo '! python -m numpydoc --validate numpydoc.tests.test_main._docstring_with_errors' | bash
150+
151+
- name: Setup for doc build
152+
run: |
153+
sudo apt-get update
154+
sudo apt install texlive texlive-latex-extra latexmk dvipng
155+
156+
- name: Build documentation
157+
run: |
158+
make -C doc html SPHINXOPTS="-nT"
159+
make -C doc latexpdf SPHINXOPTS="-nT"

0 commit comments

Comments
 (0)