mirror of https://github.com/pallets/flask.git
use rtd to build docs for prs
skip code tests when only docs change
This commit is contained in:
parent
adeaf27e76
commit
8d9501598f
|
@ -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
|
||||||
|
|
|
@ -6,3 +6,4 @@ python:
|
||||||
path: .
|
path: .
|
||||||
sphinx:
|
sphinx:
|
||||||
builder: dirhtml
|
builder: dirhtml
|
||||||
|
fail_on_warning: true
|
||||||
|
|
Loading…
Reference in New Issue