From 257794c4bb18a09979d26d8ca0b424b575195716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Bontyes?= Date: Sat, 22 Jun 2024 12:07:01 -0400 Subject: [PATCH] Update pylint.yml --- .github/workflows/pylint.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 6233948..eff8743 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,23 +1,25 @@ -name: Pylint +name: Python Lint and Test -on: [push] +on: [push, pull_request] jobs: - build: + lint: runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.12"] + steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 with: - python-version: ${{ matrix.python-version }} + python-version: 3.12 + - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pylint - - name: Analysing the code with pylint + pip install requests pylint + + - name: Run pylint run: | pylint $(git ls-files '*.py')