forked from PHP-CS-Fixer/PHP-CS-Fixer
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 875 Bytes
/
sphinx.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Sphinx
on:
pull_request:
paths:
- "**/*.rst"
push:
paths:
- "**/*.rst"
permissions:
contents: "read"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
sphinx:
name: Sphinx reStructuredText validity
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-sphinx-lint
- name: Install sphinx-lint
run: |
pip install --user sphinx-lint
- name: Check Sphinx document sources
run: |
git ls-files --cached -z -- '*.rst' \
| xargs --null -- python -m sphinxlint --enable all --disable trailing-whitespace --max-line-length 2000