plotting was breaking in the case of cumulative and use_bos_token=Fal… #47
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: 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 |