-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (32 loc) · 1.06 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
name: Pylint
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry and pylint
run: |
python -m pip install --upgrade pip
pip install pylint pylint-exit pylint-json2html
- name: Install dependencies
run: pip install .[allplus]
- name: Analysing the code with pylint
run: |
pylint -j 0 --extension-pkg-allow-list=kenlm,numpy surprisal --output-format=json:pylint.json,colorized || pylint-exit -efail $?
- name: convert pylint json output to html
run: |
mkdir -p docs/
pylint-json2html pylint.json -o docs/pylint.html
- name: upload pylint output as artifact
uses: actions/upload-artifact@v2
with:
name: pylint-html
path: docs/pylint.html