Skip to content

Commit

Permalink
ci: only run pylint on a single Python version
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidg authored Feb 17, 2025
1 parent 51b2c59 commit d901756
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,27 @@
name: Pylint

on: [push]
on:
push:
branches: [ main ]
paths:
- 'l2gv2/**/*.py'
- '.github/workflows/pylint.yml'
pull_request:
branches: [ main ]
paths:
- 'tests/**/*.py'
- '.github/workflows/pylint.yml'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit d901756

Please sign in to comment.