Skip to content

Add working directory to pylint workflow #16

Add working directory to pylint workflow

Add working directory to pylint workflow #16

Workflow file for this run

name: Pylint
on: [push]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./api
strategy:
matrix:
python-version: ["3.10", "3.11"]
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 -r requirements/dev-requirements.txt
- name: Analysing the code with pylint
run: |
export PYTHONPATH=$(pwd)
pylint --fail-under=8 $(git ls-files 'src/*.py') --disable=C0114,C0115,C0116