mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
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:
parent
ce9645a9c7
commit
a07da37f14
2 changed files with 16 additions and 11 deletions
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
10
.travis.yml
10
.travis.yml
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue