From 3f2b304d9fda7426298ba13a81dc2aac0155aac6 Mon Sep 17 00:00:00 2001 From: Arjen Bos <1064589+arjenbos@users.noreply.github.com> Date: Sun, 29 Oct 2023 11:18:13 +0100 Subject: [PATCH] Pylint as github action --- .github/workflows/pylint.yaml | 23 +++++++++++++++++++++++ requirements-dev.txt | 3 ++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pylint.yaml diff --git a/.github/workflows/pylint.yaml b/.github/workflows/pylint.yaml new file mode 100644 index 0000000..29c5cd5 --- /dev/null +++ b/.github/workflows/pylint.yaml @@ -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') \ No newline at end of file diff --git a/requirements-dev.txt b/requirements-dev.txt index 92cb973..98c8509 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,3 +1,4 @@ backports.pbkdf2==0.1 pycryptodome==3.17 -homeassistant==2023.9.0 \ No newline at end of file +homeassistant==2023.9.0 +pylint \ No newline at end of file