Skip to content

Commit

Permalink
Add GHA problem-matcher for pylint
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mhucka committed Feb 10, 2025
1 parent b21bceb commit 364ea65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ jobs:
- name: Install requirements
run: pip install -r dev_tools/requirements/envs/pylint.env.txt

- name: Set up Pylint output problem matcher
run: echo '::add-matcher::.github/problem-matchers/pylint.json'

- name: Run pylint
run: check/pylint

Expand Down Expand Up @@ -390,7 +393,6 @@ jobs:

- name: Set up yamllint output problem matcher
run: |
ls -la
echo "::add-matcher::.github/problem-matchers/yamllint.json"
- name: Run yamllint
Expand Down

0 comments on commit 364ea65

Please sign in to comment.