Skip to content

Updating release action #45

Updating release action

Updating release action #45

Workflow file for this run

name: Pylint
on:
push:
paths:
- "**.py"
- "pylintrc"
- ".github/workflows/pylint.yaml"
pull_request:
paths:
- "**.py"
- "pylintrc"
- ".github/workflows/pylint.yaml"
jobs:
PyLint:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9.9
uses: actions/setup-python@v4
with:
python-version: "3.9.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
pip install pylint-exit
pip install -r requirements.txt
- name: Run Pylint on code
run: |
pylint --rc-file=pylintrc --disable=import-error $(git ls-files '*.py') || pylint-exit --error-fail $?
if [ $? -ne 0 ]; then
exit 1
fi