Skip to content

Commit

Permalink
Create GH actions pylint.yml (#224)
Browse files Browse the repository at this point in the history
* Create GH actions pylint.yml

* Pylint to 100% - initial commit (no scp/sftp change)

* Move scp/sftp to shellcmd to avoid circular import

* Add requirements.txt install step

* Typo cp/paste back to pylint install

* Correct last failing pylint 10/10
  • Loading branch information
ghantoos authored Oct 23, 2024
1 parent cf065f0 commit fecb257
Show file tree
Hide file tree
Showing 12 changed files with 916 additions and 375 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Pylint

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Set up Python path
run: echo "PYTHONPATH=$PWD" >> $GITHUB_ENV
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
Loading

0 comments on commit fecb257

Please sign in to comment.