Skip to content

revert fuzz input

revert fuzz input #72

Workflow file for this run

name: Pylint
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10.12"]
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 dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install -r requirements.txt
# - name: Analysing the code with pylint
# run: |
# pylint $(git ls-files '*.py')
- name: Run Pylint
run: |
PYLINT_OUTPUT=$(pylint $(git ls-files '*.py') || true)
PYLINT_SCORE=$(echo "$PYLINT_OUTPUT" | grep 'rated at' | sed 's/.*rated at \([0-9.]*\)\/10.*/\1/')
echo "PYLINT_SCORE=$PYLINT_SCORE" >> $GITHUB_ENV
echo "$PYLINT_OUTPUT"
- name: Fail if below threshold (8)
run: |
if (( $(echo "$PYLINT_SCORE < 8.0" |bc -l) )); then
exit 1
fi