mirror of
https://github.com/serengil/deepface.git
synced 2025-06-07 12:05:22 +00:00
linting
This commit is contained in:
parent
36cb949fcc
commit
02a95dffdd
6
.github/workflows/tests.yml
vendored
6
.github/workflows/tests.yml
vendored
@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/tests.yml'
|
- '.github/workflows/tests.yml'
|
||||||
|
- '.github/workflows/lint.yml'
|
||||||
- 'deepface/**'
|
- 'deepface/**'
|
||||||
- 'tests/**'
|
- 'tests/**'
|
||||||
- 'api/**'
|
- 'api/**'
|
||||||
@ -13,6 +14,7 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
paths:
|
paths:
|
||||||
- '.github/workflows/tests.yml'
|
- '.github/workflows/tests.yml'
|
||||||
|
- '.github/workflows/lint.yml'
|
||||||
- 'deepface/**'
|
- 'deepface/**'
|
||||||
- 'tests/**'
|
- 'tests/**'
|
||||||
- 'api/**'
|
- 'api/**'
|
||||||
@ -62,13 +64,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pytest
|
pip install pytest
|
||||||
pip install pylint
|
|
||||||
pip install black
|
|
||||||
pip install .
|
pip install .
|
||||||
|
|
||||||
- name: Test with pytest
|
- name: Test with pytest
|
||||||
run: |
|
run: |
|
||||||
cd tests
|
cd tests
|
||||||
pytest unit_tests.py
|
pytest unit_tests.py
|
||||||
pylint --fail-under=10 ../deepface/
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user