Add flake8 checker

This commit is contained in:
Waqar Ahmed
2021-04-21 01:33:37 +05:00
committed by Waqar Ahmed
parent 0cf3069c8b
commit 464c86eb90
2 changed files with 22 additions and 1 deletions
+21
View File
@@ -0,0 +1,21 @@
name: flake8
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Analysing the code with flake8
run: flake8 .
+1 -1
View File
@@ -7,7 +7,7 @@ COMMIT_HASH=$(shell git rev-parse --short HEAD)
check:
ifeq ("$(wildcard ./venv-${COMMIT_HASH})","")
@rm -rf venv-*
@apt install -y python3-distutils python3-pip python3-venv >/dev/null 2>&1
@${PYTHON} -m pip install -U virtualenv >/dev/null 2>&1
@${PYTHON} -m venv venv-${COMMIT_HASH}
@. ./venv-${COMMIT_HASH}/bin/activate && \
python3 -m pip install -r requirements.txt >/dev/null 2>&1 && \