docs: add CI for docs PRs (#3884)

This commit is contained in:
Jameson Nash 2023-01-18 11:29:10 -06:00 committed by GitHub
parent 4155405e60
commit 975f685d69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/CI-docs.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: CI-docs
on:
pull_request:
paths:
- 'docs/**'
- '!docs/code/**'
- '.github/workflows/CI-docs.yml'
jobs:
docs-src:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip' # caching pip dependencies
- run: pip install -r docs/requirements.txt
- name: html
run: |
make -C docs html
- name: linkcheck
run: |
make -C docs linkcheck