From 195f24652e5d73a3409e7539bea0f578adcf12b5 Mon Sep 17 00:00:00 2001 From: hoangvu5 Date: Mon, 4 May 2026 19:33:55 -0400 Subject: [PATCH] Update Pylint workflow triggers and actions --- .github/workflows/pylint.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 8dd9d7f..4a8c0eb 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -2,20 +2,33 @@ name: Pylint permissions: contents: read -on: [push] +on: + push: + branches: + - main + - dev + paths: + - '**.py' + pull_request: + branches: + - main + - dev + paths: + - '**.py' jobs: - build: + lint: runs-on: ubuntu-latest strategy: matrix: python-version: ["3.10", "3.11", "3.12"] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + cache: 'pip' - name: Install dependencies run: | python -m pip install --upgrade pip