-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (40 loc) · 1 KB
/
pylint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Pylint
on:
push:
branches:
- main
- dev
pull_request:
branches:
- '*'
workflow_dispatch:
permissions:
contents: read
pull-requests: write
jobs:
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: build PQAnalysis
run: |
pip install pylint
pip install pylint-django
pip install .
- name: Lint with pylint
shell: bash
run: |
pylint PQAnalysis --exit-zero | tee pylint_output.txt
python .github/scripts/parse_pylint.py pylint_output.txt | tee comment.txt
- uses: marocchino/sticky-pull-request-comment@v2
if: (success() || failure()) && github.event.pull_request
with:
recreate: true
path: comment.txt
- if: (success() || failure()) && !github.event.pull_request
run: |
cat comment.txt >> "${GITHUB_STEP_SUMMARY}"