Skip to content

Commit a071be5

Browse files
Create pylint.yml
1 parent 121750b commit a071be5

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/pylint.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: PyLint
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.11"]
11+
steps:
12+
# Step 1: Checkout code
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
# Step 2: Set up Python environment
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v3
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
22+
# Step 3: Install dependencies
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r src/ContentProcessorAPI/requirements.txt
27+
pip install flake8 # Ensure flake8 is installed
28+
29+
30+
# Step 4: Run all code quality checks
31+
- name: Pylint
32+
run: |
33+
echo "Running Pylint..."
34+
python -m flake8 --config=.flake8 --verbose .

0 commit comments

Comments
 (0)