mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
[workflow] Use Sphinx problem matcher on GitHub docs builds (GH-20325)
This commit is contained in:
parent
9645930b5b
commit
2602d97a0a
2 changed files with 43 additions and 1 deletions
40
.github/problem-matchers/sphinx.json
vendored
Normal file
40
.github/problem-matchers/sphinx.json
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
{
|
||||||
|
"problemMatcher": [
|
||||||
|
{
|
||||||
|
"owner": "sphinx-problem-matcher",
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"regexp": "^(.*):(\\d+):\\s+(\\w*):\\s+(.*)$",
|
||||||
|
"file": 1,
|
||||||
|
"line": 2,
|
||||||
|
"severity": 3,
|
||||||
|
"message": 4
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"owner": "sphinx-problem-matcher-loose",
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"_comment": "A bit of a looser pattern, doesn't look for line numbers, just looks for file names relying on them to start with / and end with .rst",
|
||||||
|
"regexp": "(\/.*\\.rst):\\s+(\\w*):\\s+(.*)$",
|
||||||
|
"file": 1,
|
||||||
|
"severity": 2,
|
||||||
|
"message": 3
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"owner": "sphinx-problem-matcher-loose-no-severity",
|
||||||
|
"pattern": [
|
||||||
|
{
|
||||||
|
"_comment": "Looks for file names ending with .rst and line numbers but without severity",
|
||||||
|
"regexp": "^(.*\\.rst):(\\d+):(.*)$",
|
||||||
|
"file": 1,
|
||||||
|
"line": 2,
|
||||||
|
"message": 3
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
4
.github/workflows/doc.yml
vendored
4
.github/workflows/doc.yml
vendored
|
|
@ -25,6 +25,8 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- name: Register Sphinx problem matcher
|
||||||
|
run: echo "::add-matcher::.github/problem-matchers/sphinx.json"
|
||||||
- name: 'Install Dependencies'
|
- name: 'Install Dependencies'
|
||||||
run: sudo ./.github/workflows/posix-deps-apt.sh && sudo apt-get install wamerican
|
run: sudo ./.github/workflows/posix-deps-apt.sh && sudo apt-get install wamerican
|
||||||
- name: 'Configure CPython'
|
- name: 'Configure CPython'
|
||||||
|
|
@ -34,7 +36,7 @@ jobs:
|
||||||
- name: 'Install build dependencies'
|
- name: 'Install build dependencies'
|
||||||
run: make -C Doc/ PYTHON=../python venv
|
run: make -C Doc/ PYTHON=../python venv
|
||||||
- name: 'Build documentation'
|
- name: 'Build documentation'
|
||||||
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W -j4" doctest suspicious html
|
run: xvfb-run make -C Doc/ PYTHON=../python SPHINXOPTS="-q -W --keep-going -j4" doctest suspicious html
|
||||||
- name: 'Upload'
|
- name: 'Upload'
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue