-
Notifications
You must be signed in to change notification settings - Fork 12
30 lines (30 loc) · 1.17 KB
/
validate-documentation.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
name: Validate documentation
on:
push:
paths:
- ".github/**"
- "docs/**"
- "requirements/development.txt"
jobs:
rst-lint:
name: Lint ReStructuredText documentation
runs-on: ubuntu-latest
container: python:3.9-bullseye
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.7
- name: Virtualenv caching
uses: actions/cache@v4.0.2
with:
path: ~/venv/current
key: ${{ runner.os }}-python3.9-venv-v1-${{ hashFiles('**/requirements/development.txt') }}-${{ hashFiles('**/requirements/production.txt') }}
restore-keys: |
${{ runner.os }}-python3.9-venv-v1-${{ hashFiles('**/requirements/development.txt') }}-${{ hashFiles('**/requirements/production.txt') }}
${{ runner.os }}-python3.9-venv-v1-${{ hashFiles('**/requirements/development.txt') }}-
${{ runner.os }}-python3.9-venv-v1-
- name: Install Python dependencies
uses: mobolic/install-python-dependencies@v0.3.0
with:
virtualenv-location: "~/venv/current"
- name: Run rstcheck
run: ~/venv/current/bin/rstcheck --report-level warning docs/source/*.rst