From d15d8ec884d9caa3eaced0efbb52189fe0d9f45c Mon Sep 17 00:00:00 2001 From: Mips Date: Thu, 25 Apr 2024 09:24:48 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 76ad08c..ec625ef 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ -# jeedom-daemon-py \ No newline at end of file +# jeedom-daemon-py + +![example workflow](https://github.com/github/docs/actions/workflows/main.yml/badge.svg) + +![tests](https://github.com/Mips2648/jeedom-daemon-py/actions/workflows/python-package.yml/badge.svg) From a021a4021ec619b20120ae67697095db3c3a1973 Mon Sep 17 00:00:00 2001 From: Mips Date: Thu, 25 Apr 2024 09:25:21 +0200 Subject: [PATCH 2/3] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index ec625ef..d31fca9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ # jeedom-daemon-py -![example workflow](https://github.com/github/docs/actions/workflows/main.yml/badge.svg) - -![tests](https://github.com/Mips2648/jeedom-daemon-py/actions/workflows/python-package.yml/badge.svg) +![Python tests](https://github.com/Mips2648/jeedom-daemon-py/actions/workflows/python-package.yml/badge.svg) From 08cb81480cace14e75df59e886e30924fd7792bc Mon Sep 17 00:00:00 2001 From: Mips Date: Thu, 25 Apr 2024 09:26:49 +0200 Subject: [PATCH 3/3] Create pylint.yml --- .github/workflows/pylint.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pylint.yml diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml new file mode 100644 index 0000000..be5fd06 --- /dev/null +++ b/.github/workflows/pylint.yml @@ -0,0 +1,23 @@ +name: Pylint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["3.7", "3.9", "3.11"] + 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: | + python -m pip install --upgrade pip + pip install pylint + - name: Analysing the code with pylint + run: | + pylint $(git ls-files '*.py')