port docs and docs-linkcheck (#5563)

* port docs and docs-linkcheck

* allow linkcheck if the commit msg says linkcheck

combine docs job into lint jobs

* can't get the commit msg at this time on a PR
This commit is contained in:
Paul Kehrer 2020-11-11 17:56:58 -06:00 committed by GitHub
parent ce9645a9c7
commit a07da37f14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 11 deletions

View file

@ -15,7 +15,7 @@ jobs:
strategy:
matrix:
PYTHON:
- {VERSION: "3.9", TOXENV: "pep8,packaging", COVERAGE: "false"}
- {VERSION: "3.9", TOXENV: "pep8,packaging,docs", COVERAGE: "false"}
- {VERSION: "pypy2", TOXENV: "pypy-nocoverage", COVERAGE: "false"}
- {VERSION: "pypy3", TOXENV: "pypy3-nocoverage", COVERAGE: "false"}
- {VERSION: "2.7", TOXENV: "py27", OPENSSL: {TYPE: "openssl", VERSION: "1.1.0l"}}
@ -230,3 +230,18 @@ jobs:
- run: ./.github/downstream.d/${{ matrix.DOWNSTREAM }}.sh install
- run: pip install .
- run: ./.github/downstream.d/${{ matrix.DOWNSTREAM }}.sh run
docs-linkcheck:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
name: "linkcheck"
steps:
- uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: 3.9
- run: python -m pip install -U tox
- run: tox -r -- --color=yes
env:
TOXENV: docs-linkcheck

View file

@ -19,16 +19,6 @@ branches:
matrix:
include:
# Setting 'python' is just to make travis's UI a bit prettier
- python: 3.8
env: TOXENV=docs
addons:
apt:
packages:
- libenchant-dev
- python: 3.8
env: TOXENV=docs-linkcheck
if: (branch = master AND type != pull_request) OR commit_message =~ /linkcheck/
# TODO: This needs to be moved to GHA, but it fails there. The
# confusing part is why it passes on Travis!
- python: 3.7