use rtd to build docs for prs

skip code tests when only docs change
This commit is contained in:
David Lord 2021-02-16 08:36:14 -08:00
parent adeaf27e76
commit 8d9501598f
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
2 changed files with 9 additions and 1 deletions

View File

@ -4,10 +4,18 @@ on:
branches: branches:
- master - master
- '*.x' - '*.x'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
pull_request: pull_request:
branches: branches:
- master - master
- '*.x' - '*.x'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
jobs: jobs:
tests: tests:
name: ${{ matrix.name }} name: ${{ matrix.name }}
@ -23,7 +31,6 @@ jobs:
- {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37} - {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37}
- {name: '3.6', python: '3.6', os: ubuntu-latest, tox: py36} - {name: '3.6', python: '3.6', os: ubuntu-latest, tox: py36}
- {name: 'PyPy', python: pypy3, os: ubuntu-latest, tox: pypy3} - {name: 'PyPy', python: pypy3, os: ubuntu-latest, tox: pypy3}
- {name: Docs, python: '3.9', os: ubuntu-latest, tox: docs}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-python@v2 - uses: actions/setup-python@v2

View File

@ -6,3 +6,4 @@ python:
path: . path: .
sphinx: sphinx:
builder: dirhtml builder: dirhtml
fail_on_warning: true