Skip to content

Commit

Permalink
adj pylint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pdwaggoner authored Nov 26, 2024
1 parent 9ff4824 commit 1417ab3
Showing 1 changed file with 31 additions and 17 deletions.
48 changes: 31 additions & 17 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
name: Pylint

on: [push]
on:
push:
branches:
- main
pull_request:

jobs:
build:
lint-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]

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
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
# Step 1: Checkout the code
- name: Checkout code
uses: actions/checkout@v3

# Step 2: Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'

# Step 3: Install dependencies
- name: Install dependencies
run: |
pip install flake8 pytest
# Step 4: Run the linter (flake8)
- name: Lint code
run: |
flake8 .
# Step 5: Run the tests
- name: Run tests
run: |
pytest dlq_py/tests

0 comments on commit 1417ab3

Please sign in to comment.