Skip to content

Commit 9455233

Browse files
authored
Add GHA problem-matcher for pylint (#957)
GitHub [Problem Matchers](https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md) are a mechanism that enable workflow steps to scan the outputs of GitHub Actions for regex patterns and automatically write annotations in the workflow summary page. Using Problem Matchers allows information to be displayed more prominently in the GitHub user interface. This hooks in the problem matcher for Pylint.
1 parent b21bceb commit 9455233

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,9 @@ jobs:
228228
- name: Install requirements
229229
run: pip install -r dev_tools/requirements/envs/pylint.env.txt
230230

231+
- name: Set up Pylint output problem matcher
232+
run: echo '::add-matcher::.github/problem-matchers/pylint.json'
233+
231234
- name: Run pylint
232235
run: check/pylint
233236

@@ -390,7 +393,6 @@ jobs:
390393

391394
- name: Set up yamllint output problem matcher
392395
run: |
393-
ls -la
394396
echo "::add-matcher::.github/problem-matchers/yamllint.json"
395397
396398
- name: Run yamllint

0 commit comments

Comments
 (0)