Skip to content

Commit 85a202e

Browse files
committed
Test prereleases of requirements
1 parent 7964eff commit 85a202e

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

.github/workflows/test.yml

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

0 commit comments

Comments
 (0)