From 75e6ecf05c77a658ac1dedf32c251f9ea30470d7 Mon Sep 17 00:00:00 2001 From: David Lord Date: Tue, 16 Feb 2021 08:41:40 -0800 Subject: [PATCH] use rtd to build docs for prs skip code tests when only docs change --- .github/workflows/tests.yaml | 13 ++++++++++--- .readthedocs.yaml | 1 + 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 46549923..e656dcf8 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -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 diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 19069520..0c363636 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -6,3 +6,4 @@ python: path: . sphinx: builder: dirhtml + fail_on_warning: true -- 2.47.2