mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 03:55:21 +00:00
linting
This commit is contained in:
parent
7a978d29c5
commit
9d3350756b
45
.github/workflows/lint.yml
vendored
45
.github/workflows/lint.yml
vendored
@ -1,45 +0,0 @@
|
|||||||
name: Tests
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- '.github/workflows/lint.yml'
|
|
||||||
- 'deepface/**'
|
|
||||||
- 'tests/**'
|
|
||||||
- 'api/**'
|
|
||||||
- 'requirements.txt'
|
|
||||||
- '.gitignore'
|
|
||||||
- 'setup.py'
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- '.github/workflows/lint.yml'
|
|
||||||
- 'deepface/**'
|
|
||||||
- 'tests/**'
|
|
||||||
- 'api/**'
|
|
||||||
- 'requirements.txt'
|
|
||||||
- '.gitignore'
|
|
||||||
- 'setup.py'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
linting-tests-ubuntu-latest:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
python-version: [3.8]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python-version }}
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install pylint
|
|
||||||
|
|
||||||
- name: Lint tests with pylint
|
|
||||||
run: |
|
|
||||||
pylint --fail-under=10 deepface/
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user