From 38eeb688b0deab9d00490ec8a5d4b8887abf1a42 Mon Sep 17 00:00:00 2001 From: Amine Hadj-Youcef Date: Sat, 2 Mar 2024 17:23:14 +0100 Subject: [PATCH] attempt to fix workflow --- .github/workflows/pylint.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 660f28a..77c119b 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -1,6 +1,9 @@ name: Pylint -on: [push] +on: + push: + branches: + - main # Adjust this to match your branch name jobs: build: @@ -8,8 +11,10 @@ jobs: strategy: matrix: python-version: ["3.11"] + steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 @@ -24,6 +29,6 @@ jobs: - name: Install project dependencies run: poetry install - - name: Analysing the code with pylint + - name: Analyzing the code with pylint run: | poetry run pylint $(git ls-files '*.py')