Skip to content

Commit

Permalink
Add python linter job
Browse files Browse the repository at this point in the history
  • Loading branch information
dosas committed Dec 4, 2024
1 parent ff44c28 commit 349affd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/python.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Pylint
# yamllint disable-line rule:truthy
on: [push, pull_request]

jobs:
lint:
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
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pylint pyyaml
- name: Analysing the code with pylint
run: |
pylint salt
...

0 comments on commit 349affd

Please sign in to comment.