Skip to content

Commit 2c3489a

Browse files
authored
Fix pylint workflow
1 parent 11b7fd8 commit 2c3489a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/pylint.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,20 @@ jobs:
1414

1515
steps:
1616
- uses: actions/checkout@v2
17-
- name: Set up Python 3.8
17+
- name: Set up Python 3.9.5
1818
uses: actions/setup-python@v1
1919
with:
20-
python-version: 3.8
20+
python-version: 3.9.5
2121
- name: Install dependencies
2222
run: |
2323
python -m pip install --upgrade pip
2424
pip install pylint
2525
- name: Analysing the code with pylint
2626
run: |
27-
pylint `ls -R|grep .py$|xargs`
27+
pylint --fail-under=10 `find -regextype egrep -regex '(.*.py)$'`
28+
| tee pylint.txt
29+
- name: Upload pylint.txt as artifact
30+
uses: actions/upload-artifact@v2
31+
with:
32+
name: pylint report
33+
path: pylint.txt

0 commit comments

Comments
 (0)