Patch Pylint Check to Return a Max of 50 Annotations. #38
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "run-linting-checks" | |
on: | |
pull_request: | |
branches: [main, dev] | |
jobs: | |
run-pylint: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
steps: | |
- uses: LouisBrunner/[email protected] | |
id: init | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
name: Pylint Report | |
status: in_progress | |
- uses: actions/checkout@v4 | |
# update stats | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: cache pip | |
uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- run: pip install -r requirements.txt | |
- run: | | |
PYLINT_REPORT=$(./run_pylint.sh) | |
echo "PYLINT_REPORT<<EOF" >> $GITHUB_ENV | |
echo "$PYLINT_REPORT" >> $GITHUB_ENV | |
echo 'EOF' >> $GITHUB_ENV | |
- uses: LouisBrunner/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
check_id: ${{ steps.init.outputs.check_id }} | |
status: completed | |
conclusion: ${{ job.status }} | |
output: | | |
{"summary":"Pylint Report Generation ran with status: ${{job.status}}" , "text_description": "Pylint Issues are listed below."} | |
annotations: | | |
${{ env.PYLINT_REPORT }} |