Skip to content

Commit

Permalink
Pylint as github action
Browse files Browse the repository at this point in the history
  • Loading branch information
arjenbos committed Oct 29, 2023
1 parent 126b891 commit 3f2b304
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/pylint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Pylint

on: [push]

jobs:
test:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"

- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: pytest
run: |
pylint $(git ls-files '*.py')
3 changes: 2 additions & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
backports.pbkdf2==0.1
pycryptodome==3.17
homeassistant==2023.9.0
homeassistant==2023.9.0
pylint

1 comment on commit 3f2b304

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.