diff --git a/.github/sphinx-problem-matcher.json b/.github/sphinx-problem-matcher.json new file mode 100644 index 000000000..d33eb09b6 --- /dev/null +++ b/.github/sphinx-problem-matcher.json @@ -0,0 +1,18 @@ +{ + "problemMatcher": [ + { + "owner": "sphinx", + "pattern": [ + { + "regexp": "^Warning, treated as error:$" + }, + { + "regexp": "^(.*?):(\\d+):(.*)$", + "file": 1, + "line": 2, + "message": 3 + } + ] + } + ] +} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 48d43d059..ecb7e03dd 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -59,6 +59,9 @@ jobs: python -m pip install --upgrade pip python -m pip install tox sphinx + - name: Add problem matcher + run: echo "::add-matcher::.github/sphinx-problem-matcher.json" + - name: Build and check docs using tox run: tox -e docs