1212 strategy :
1313 matrix :
1414 os : [Ubuntu]
15- python-version : ["3.7", "3.8", "3.9"]
16- sphinx-version :
17- [
18- " sphinx==3.0" ,
19- " sphinx==3.5" ,
20- " sphinx==4.0" ,
21- " sphinx==4.5" ,
22- " sphinx==5.0" ,
23- " sphinx>=5.0" ,
24- ]
25- steps :
26- - uses : actions/checkout@v3
27-
28- - name : Python setup
29- uses : actions/setup-python@v4
30- with :
31- python-version : ${{ matrix.python-version }}
32-
33- - name : Setup environment
34- run : |
35- python -m pip install --upgrade pip wheel setuptools
36- python -m pip install -r requirements/test.txt -r doc/requirements.txt
37- python -m pip install codecov
38- python -m pip install ${{ matrix.sphinx-version }}
39- python -m pip list
40-
41- - name : Downgrade Jinja2 for sphinx<4
42- if : ${{ matrix.sphinx-version }} == 'sphinx<4.0.2'
43- run : python -m pip install jinja2==3.0.3 markupsafe==2.0.1 pydata-sphinx-theme==0.8.0 docutils==0.17.1
44-
45- - name : Install
46- run : |
47- python -m pip install .
48- pip list
49-
50- - name : Run test suite
51- run : |
52- pytest -v --pyargs .
53-
54- - name : Test coverage
55- run : |
56- codecov
57-
58- - name : Make sure CLI works
59- run : |
60- python -m numpydoc numpydoc.tests.test_main._capture_stdout
61- echo '! python -m numpydoc numpydoc.tests.test_main._invalid_docstring' | bash
62- python -m numpydoc --validate numpydoc.tests.test_main._capture_stdout
63- echo '! python -m numpydoc --validate numpydoc.tests.test_main._docstring_with_errors' | bash
64-
65- - name : Setup for doc build
66- run : |
67- sudo apt-get update
68- sudo apt install texlive texlive-latex-extra latexmk dvipng
69-
70- - name : Build documentation
71- run : |
72- make -C doc html SPHINXOPTS="-nT"
73- make -C doc latexpdf SPHINXOPTS="-nT"
74-
75- test-new :
76- runs-on : ${{ matrix.os }}-latest
77- strategy :
78- matrix :
79- os : [Ubuntu]
80- python-version : ["3.10"]
15+ python-version : ["3.7", "3.8", "3.9", "3.10"]
8116 sphinx-version :
8217 ["sphinx==4.2", "sphinx==4.5", "sphinx==5.0", "sphinx>=5.0"]
8318 steps :
@@ -125,13 +60,15 @@ jobs:
12560 run : |
12661 make -C doc html SPHINXOPTS="-nT"
12762 make -C doc latexpdf SPHINXOPTS="-nT"
63+
12864 base :
12965 runs-on : ${{ matrix.os }}-latest
13066 strategy :
13167 matrix :
13268 os : [ubuntu, macos, windows]
13369 python-version : ["3.11-dev"]
134- sphinx-version : ["sphinx==4.0", "sphinx==4.5"]
70+ sphinx-version :
71+ ["sphinx==4.2", "sphinx==4.5", "sphinx==5.0", "sphinx>=5.0"]
13572 steps :
13673 - uses : actions/checkout@v3
13774
@@ -147,10 +84,6 @@ jobs:
14784 python -m pip install ${{ matrix.sphinx-version }}
14885 python -m pip list
14986
150- - name : Downgrade Jinja2 for sphinx<4
151- if : ${{ matrix.sphinx-version }} == 'sphinx<4.0.2'
152- run : python -m pip install jinja2==3.0.3 markupsafe==2.0.1 pydata-sphinx-theme==0.8.0
153-
15487 - name : Install
15588 run : |
15689 python -m pip install .
0 commit comments