@@ -16,34 +16,34 @@ jobs:
16
16
strategy :
17
17
matrix :
18
18
os : [Ubuntu]
19
- python-version : ["3.8 ", "3.9 ", "3.10 ", "3.11 "]
19
+ python-version : ["3.9 ", "3.10 ", "3.11 ", "3.12", "3.13 "]
20
20
sphinx-version :
21
- [
22
- " sphinx==5.0" ,
23
- " sphinx==5.3" ,
24
- " sphinx==6.0" ,
25
- " sphinx==6.2" ,
26
- " sphinx>=7.0" ,
27
- ]
21
+ ["sphinx==6.0", "sphinx==6.2", "sphinx==7.0", "sphinx>=7.3"]
22
+ include :
23
+ - os : Windows
24
+ python-version : " 3.12"
25
+ sphinx-version : " sphinx" # version shouldn't really matter here
26
+ defaults :
27
+ run :
28
+ shell : bash -eo pipefail {0}
28
29
steps :
29
30
- uses : actions/checkout@v4
30
31
31
32
- name : Python setup
32
- uses : actions/setup-python@v4
33
+ uses : actions/setup-python@v5
33
34
with :
34
35
python-version : ${{ matrix.python-version }}
35
36
36
37
- name : Setup environment
37
38
run : |
38
39
python -m pip install --upgrade pip wheel setuptools
39
- python -m pip install -r requirements/test.txt -r requirements/doc.txt
40
40
python -m pip install codecov
41
41
python -m pip install ${{ matrix.sphinx-version }}
42
42
python -m pip list
43
43
44
44
- name : Install
45
45
run : |
46
- python -m pip install .
46
+ python -m pip install .[test,doc]
47
47
pip list
48
48
49
49
- name : Run test suite
@@ -56,45 +56,46 @@ jobs:
56
56
57
57
- name : Make sure CLI works
58
58
run : |
59
- python -m numpydoc numpydoc.tests.test_main._capture_stdout
60
- echo '! python -m numpydoc numpydoc.tests.test_main._invalid_docstring' | bash
61
- python -m numpydoc -- validate numpydoc.tests.test_main._capture_stdout
62
- echo '! python -m numpydoc -- validate numpydoc.tests.test_main._docstring_with_errors' | bash
59
+ numpydoc render numpydoc.tests.test_main._capture_stdout
60
+ echo '! numpydoc render numpydoc.tests.test_main._invalid_docstring' | bash
61
+ numpydoc validate numpydoc.tests.test_main._capture_stdout
62
+ echo '! numpydoc validate numpydoc.tests.test_main._docstring_with_errors' | bash
63
63
64
64
- name : Setup for doc build
65
65
run : |
66
66
sudo apt-get update
67
67
sudo apt install texlive texlive-latex-extra latexmk dvipng
68
+ if : runner.os == 'Linux'
68
69
69
70
- name : Build documentation
70
71
run : |
71
72
make -C doc html SPHINXOPTS="-nT"
72
73
make -C doc latexpdf SPHINXOPTS="-nT"
74
+ if : runner.os == 'Linux'
73
75
74
76
prerelease :
75
77
runs-on : ${{ matrix.os }}-latest
76
78
strategy :
77
79
matrix :
78
80
os : [ubuntu]
79
- python-version : ["3.9 ", "3.10 "]
81
+ python-version : ["3.11 ", "3.12", "3.13 "]
80
82
steps :
81
83
- uses : actions/checkout@v4
82
84
83
85
- name : Python setup
84
- uses : actions/setup-python@v4
86
+ uses : actions/setup-python@v5
85
87
with :
86
88
python-version : ${{ matrix.python-version }}
87
89
88
90
- name : Setup environment
89
91
run : |
90
92
python -m pip install --upgrade pip wheel setuptools
91
- python -m pip install --pre -r requirements/test.txt -r requirements/doc.txt
92
93
python -m pip install codecov
93
94
python -m pip list
94
95
95
96
- name : Install
96
97
run : |
97
- python -m pip install .
98
+ python -m pip install .[test,doc]
98
99
pip list
99
100
100
101
- name : Run test suite
@@ -107,10 +108,10 @@ jobs:
107
108
108
109
- name : Make sure CLI works
109
110
run : |
110
- python -m numpydoc numpydoc.tests.test_main._capture_stdout
111
- echo '! python -m numpydoc numpydoc.tests.test_main._invalid_docstring' | bash
112
- python -m numpydoc -- validate numpydoc.tests.test_main._capture_stdout
113
- echo '! python -m numpydoc -- validate numpydoc.tests.test_main._docstring_with_errors' | bash
111
+ numpydoc render numpydoc.tests.test_main._capture_stdout
112
+ echo '! numpydoc render numpydoc.tests.test_main._invalid_docstring' | bash
113
+ numpydoc validate numpydoc.tests.test_main._capture_stdout
114
+ echo '! numpydoc validate numpydoc.tests.test_main._docstring_with_errors' | bash
114
115
115
116
- name : Setup for doc build
116
117
run : |
0 commit comments