From dc0a94bba36549411b108763cd11ba82e94fbf7e Mon Sep 17 00:00:00 2001 From: Drikus Roor Date: Wed, 12 Apr 2023 09:02:05 +0200 Subject: [PATCH] ci: Add a flake8 linting job --- .github/workflows/unit_tests.yml | 3 +++ requirements.txt | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 5973dd02..dda45e6c 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -30,6 +30,9 @@ jobs: python -m pip install --upgrade pip pip install -r requirements.txt + - name: Lint with flake8 + run: flake8 scripts/ tests/ + - name: Run unittest tests with coverage run: | coverage run --source=scripts -m unittest discover tests diff --git a/requirements.txt b/requirements.txt index b196c3d7..b864c1d3 100644 --- a/requirements.txt +++ b/requirements.txt @@ -15,4 +15,5 @@ pinecone-client==2.2.1 redis orjson Pillow -coverage \ No newline at end of file +coverage +flake8 \ No newline at end of file