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:41:40 -08:00
parent e6577e9a36
commit 75e6ecf05c
No known key found for this signature in database
GPG Key ID: 7A1C87E3F5BC42A8
2 changed files with 11 additions and 3 deletions

View File

@ -4,10 +4,18 @@ on:
branches:
- master
- '*.x'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
pull_request:
branches:
- master
- '*.x'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
jobs:
tests:
name: ${{ matrix.name }}
@ -17,14 +25,13 @@ jobs:
matrix:
include:
- {name: Linux, python: '3.9', os: ubuntu-latest, tox: py39}
- {name: Windows, python: '3.9', os: windows-latest, tox: py39}
- {name: Mac, python: '3.9', os: macos-latest, tox: py39}
- {name: '3.8', python: '3.8', os: ubuntu-latest, tox: py38}
- {name: '3.7', python: '3.7', os: ubuntu-latest, tox: py37}
- {name: '3.6', python: '3.6', os: ubuntu-latest, tox: py36}
- {name: 'PyPy', python: pypy3, os: ubuntu-latest, tox: pypy3}
- {name: Docs, python: '3.9', os: ubuntu-latest, tox: docs}
- {name: Typing, python: '3.9', os: ubuntu-latest, tox: typing}
- {name: Windows, python: '3.9', os: windows-latest, tox: py39}
- {name: Mac, python: '3.9', os: macos-latest, tox: py39}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2

View File

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