ADD: Add tests to improve coverage #127
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: Linting with Pylint | |
on: [pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Checks with pylint | |
steps: | |
- name: Install dependencies | |
run: sudo apt-get install libgirepository1.0-dev | |
- name: Checkout branch | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get changed files | |
id: changed-python | |
uses: tj-actions/changed-files@v44 | |
with: | |
files: | | |
**.py | |
#fetch_depth: 0 | |
- name: Install python | |
if: steps.changed-python.outputs.any_changed == 'true' | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.x | |
- run: pip install --upgrade pip | |
if: steps.changed-python.outputs.any_changed == 'true' | |
- run: pip install . | |
if: steps.changed-python.outputs.any_changed == 'true' | |
- run: pip install pylint==2.16.* | |
if: steps.changed-python.outputs.any_changed == 'true' | |
- run: pylint --rcfile=pylintrc ${{ steps.changed-python.outputs.all_changed_python }} | |
if: steps.changed-python.outputs.any_changed == 'true' |