]> git.ipfire.org Git - thirdparty/jinja.git/commitdiff
use rtd to build docs for prs
authorDavid Lord <davidism@gmail.com>
Tue, 16 Feb 2021 16:41:40 +0000 (08:41 -0800)
committerDavid Lord <davidism@gmail.com>
Tue, 16 Feb 2021 16:41:40 +0000 (08:41 -0800)
skip code tests when only docs change

.github/workflows/tests.yaml
.readthedocs.yaml

index 4654992340d85fcfb32a93b849d4ac25403238c6..e656dcf8406966ac275909b25028b33121caf38d 100644 (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
index 190695202c2ebc45260ffb10ced932cfcb70b564..0c363636f68da8d2b2a28a0fded9c59066f1ed00 100644 (file)
@@ -6,3 +6,4 @@ python:
       path: .
 sphinx:
   builder: dirhtml
+  fail_on_warning: true