diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index eb2fb5039b7..3d64c5a31e6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -622,6 +622,9 @@ jobs: run: | echo "Failed to restore Python virtual environment from cache" exit 1 + - name: Register pylint problem matcher + run: | + echo "::add-matcher::.github/workflows/matchers/pylint.json" - name: Run pylint run: | . venv/bin/activate diff --git a/.github/workflows/matchers/pylint.json b/.github/workflows/matchers/pylint.json new file mode 100644 index 00000000000..ad3a277f780 --- /dev/null +++ b/.github/workflows/matchers/pylint.json @@ -0,0 +1,17 @@ +{ + "problemMatcher": [ + { + "owner": "pylint", + "pattern": [ + { + "regexp": "^(.+):(\\d+):(\\d+):\\s([CERW]\\d{4}):\\s(.+)$", + "file": 1, + "line": 2, + "column": 3, + "message": 5, + "code": 4 + } + ] + } + ] +}