Skip to content

Commit 9b553ac

Browse files
committed
Add sphinx-lint workflow
Signed-off-by: Rafael Vasquez <[email protected]>
1 parent 1dbae03 commit 9b553ac

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/sphinx-lint.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Lint documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "docs/**"
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
doc8:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
python-version: ["3.12"]
19+
steps:
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
pip install sphinx-lint
29+
- name: Linting docs
30+
run: sphinx-lint docs

0 commit comments

Comments
 (0)