aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmmar Askar <ammar@ammaraskar.com>2020-05-25 21:32:24 +0000
committerGitHub <noreply@github.com>2020-05-25 22:32:24 +0100
commit2602d97a0ae92b2d320909024e901c202b003e14 (patch)
treea135b42e1ef43a49790fe1eb9c7e6ce3254f404d /.github
parentbpo-40688: Use the correct parser in the peg_generator scripts (GH-20235) (diff)
downloadcpython-2602d97a0ae92b2d320909024e901c202b003e14.tar.gz
cpython-2602d97a0ae92b2d320909024e901c202b003e14.tar.bz2
cpython-2602d97a0ae92b2d320909024e901c202b003e14.zip
[workflow] Use Sphinx problem matcher on GitHub docs builds (GH-20325)
Diffstat (limited to '.github')
-rw-r--r--.github/problem-matchers/sphinx.json40
-rw-r--r--.github/workflows/doc.yml4
2 files changed, 43 insertions, 1 deletions
diff --git a/.github/problem-matchers/sphinx.json b/.github/problem-matchers/sphinx.json
new file mode 100644
index 00000000000..228415f5b7b
--- /dev/null
+++ b/.github/problem-matchers/sphinx.json
@@ -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
+ }
+ ]
+ }
+ ]
+} \ No newline at end of file
diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml
index d481ea279d7..88c9cbd797a 100644
--- a/.github/workflows/doc.yml
+++ b/.github/workflows/doc.yml
@@ -25,6 +25,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
+ - name: Register Sphinx problem matcher
+ run: echo "::add-matcher::.github/problem-matchers/sphinx.json"
- name: 'Install Dependencies'
run: sudo ./.github/workflows/posix-deps-apt.sh && sudo apt-get install wamerican
- name: 'Configure CPython'
@@ -34,7 +36,7 @@ jobs:
- name: 'Install build dependencies'
run: make -C Doc/ PYTHON=../python venv
- 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'
uses: actions/upload-artifact@v1
with: