summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lord <davidism@gmail.com>2021-02-16 08:41:40 -0800
committerDavid Lord <davidism@gmail.com>2021-02-16 08:41:40 -0800
commit75e6ecf05c77a658ac1dedf32c251f9ea30470d7 (patch)
tree554c5557bd0c63fd9427f8aba7f285f3780fff6d
parente6577e9a36dbc099772be02e6662cf65637f6e6d (diff)
downloadjinja2-75e6ecf05c77a658ac1dedf32c251f9ea30470d7.tar.gz
use rtd to build docs for prs
skip code tests when only docs change
-rw-r--r--.github/workflows/tests.yaml13
-rw-r--r--.readthedocs.yaml1
2 files changed, 11 insertions, 3 deletions
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index 4654992..e656dcf 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 1906952..0c36363 100644
--- a/.readthedocs.yaml
+++ b/.readthedocs.yaml
@@ -6,3 +6,4 @@ python:
path: .
sphinx:
builder: dirhtml
+ fail_on_warning: true