changed workflows
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Isort
|
name: Code Review
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -24,8 +24,11 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install isort
|
pip install black isort
|
||||||
|
|
||||||
# 4. Run code format checks
|
# 4. Run code format checks
|
||||||
|
- name: Check code formatting with Black
|
||||||
|
run: black --check .
|
||||||
|
|
||||||
- name: Check import order with isort
|
- name: Check import order with isort
|
||||||
run: isort --check-only .
|
run: isort --check-only .
|
||||||
@@ -24,22 +24,11 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install black isort flake8 pylint pytest python-dotenv
|
pip install flake8 pylint
|
||||||
|
|
||||||
# 4. Run code format checks
|
# 4. Run linters
|
||||||
- name: Check code formatting with Black
|
- name: Run flake8
|
||||||
run: black --check .
|
run: flake8
|
||||||
|
|
||||||
#- name: Check import order with isort
|
- name: Run pylint
|
||||||
# run: isort --check-only .
|
run: pylint frontend services utils
|
||||||
|
|
||||||
# 5. Run linters
|
|
||||||
#- name: Run flake8
|
|
||||||
# run: flake8
|
|
||||||
|
|
||||||
#- name: Run pylint
|
|
||||||
# run: pylint frontend services utils
|
|
||||||
|
|
||||||
# 6. Run unit tests
|
|
||||||
#- name: Run pytest
|
|
||||||
# run: pytest
|
|
||||||
Reference in New Issue
Block a user