-
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/[email protected]
- name: Virtualenv caching
uses: actions/[email protected]
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/[email protected]
with:
virtualenv-location: "~/venv/current"
- name: Run rstcheck
run: ~/venv/current/bin/rstcheck --report-level warning docs/source/*.rst