Skip to content

Create pylint.yml

Create pylint.yml #1

Workflow file for this run

name: Pylint
on: [push, pull_request]
jobs:
pylint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'name: Pylint

Check failure on line 16 in .github/workflows/pylint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pylint.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
on: [push, pull_request]
jobs:
pylint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Run Pylint
run: |
pylint $(git ls-files '*.py')
```
7. Click **"Commit changes"**
---
## Or Use the Quick Way:
You can also navigate directly by typing in your browser:
```
https://github.com/Ahmadhammam03/face_recognition/blob/master/.github/workflows/pylint.yml