Skip to content

Commit 270c861

Browse files
add job
configure job for docuemntation checking
1 parent efde030 commit 270c861

File tree

2 files changed

+35
-7
lines changed

2 files changed

+35
-7
lines changed

.github/workflows/testing.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ jobs:
178178
python -m pip install --upgrade setuptools
179179
pip install -r requirements.txt
180180
181-
- name: Install external packages used for dynamic tests
181+
- name: Install external packages used for sorting imports
182182
run: |
183183
pip install .[sorting-imports]
184184
@@ -187,3 +187,28 @@ jobs:
187187
isort uds
188188
isort tests
189189
isort examples
190+
191+
documentation_checks:
192+
runs-on: ubuntu-latest
193+
194+
steps:
195+
- uses: actions/checkout@v4
196+
197+
- name: Set up Python 3.12
198+
uses: actions/setup-python@v4
199+
with:
200+
python-version: 3.12
201+
202+
- name: Install project dependencies
203+
run: |
204+
python -m pip install --upgrade pip
205+
python -m pip install --upgrade setuptools
206+
pip install -r requirements.txt
207+
208+
- name: Install external packages used for documentation checking
209+
run: |
210+
pip install .[docs-checks]
211+
212+
- name: Check RST documentation [doc8]
213+
run: |
214+
docs8 docs/source

pyproject.toml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ test = [
6666
"pytest-cov",
6767
"pytest-asyncio",
6868
]
69-
docs = [
70-
"sphinx",
71-
"sphinx-autoapi",
72-
"sphinx-rtd-theme",
73-
"tomli",
74-
]
7569
static-code-analysis = [
7670
"prospector == 1.10.3",
7771
"mypy == 1.9.0",
@@ -86,6 +80,15 @@ dependency-scan = [
8680
sorting-imports = [
8781
"isort == 5.13.2"
8882
]
83+
docs = [
84+
"sphinx",
85+
"sphinx-autoapi",
86+
"sphinx-rtd-theme",
87+
"tomli",
88+
]
89+
docs-checks = [
90+
"doc8 == 1.1.1",
91+
]
8992

9093

9194
[build-system]

0 commit comments

Comments
 (0)