2023-03-03 01:03:43 +00:00
|
|
|
name: Pylint
|
|
|
|
|
2023-03-04 21:46:19 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
2023-03-03 01:03:43 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: ["3.8", "3.9", "3.10"]
|
|
|
|
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: |
|
2023-03-04 21:23:07 +00:00
|
|
|
python -m pip install --upgrade pip poetry
|
2023-03-04 21:15:53 +00:00
|
|
|
python -m poetry install
|
2023-03-03 01:03:43 +00:00
|
|
|
- name: Analysing the code with pylint
|
|
|
|
run: |
|
2023-03-04 21:24:43 +00:00
|
|
|
poetry run python3 -m pylint $(git ls-files '*.py')
|