Skip to content

attempt 8/n: forget to install pylint-json2html. this is why I need a… #38

attempt 8/n: forget to install pylint-json2html. this is why I need a…

attempt 8/n: forget to install pylint-json2html. this is why I need a… #38

Workflow file for this run

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 .[transformers,kenlm,openai]
- 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: pylint-json2html pylint.json -o docs/pylint.html
- name: upload pylint output as artifact
uses: actions/upload-artifact@master
with:
name: pylint-html
path: docs/pylint.html