12
12
strategy :
13
13
matrix :
14
14
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"]
81
16
sphinx-version :
82
17
["sphinx==4.2", "sphinx==4.5", "sphinx==5.0", "sphinx>=5.0"]
83
18
steps :
@@ -125,13 +60,15 @@ jobs:
125
60
run : |
126
61
make -C doc html SPHINXOPTS="-nT"
127
62
make -C doc latexpdf SPHINXOPTS="-nT"
63
+
128
64
base :
129
65
runs-on : ${{ matrix.os }}-latest
130
66
strategy :
131
67
matrix :
132
68
os : [ubuntu, macos, windows]
133
69
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"]
135
72
steps :
136
73
- uses : actions/checkout@v3
137
74
@@ -147,10 +84,6 @@ jobs:
147
84
python -m pip install ${{ matrix.sphinx-version }}
148
85
python -m pip list
149
86
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
-
154
87
- name : Install
155
88
run : |
156
89
python -m pip install .
0 commit comments