From 7fe9928d746e7d73ba91b3715645d5ed289f6f00 Mon Sep 17 00:00:00 2001 From: Eugen Ciur Date: Sun, 29 Nov 2020 08:50:46 +0100 Subject: [PATCH] run flake8 + tests --- .github/workflows/python-app.yml | 12 ++++++------ README.md | 5 +++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 610f9a2..ac051e3 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -19,16 +19,16 @@ jobs: - name: Set up Python 3.8 uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.7 - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pycodestyle pytest coverage + pip install flake8 if [ -f requirements/base.txt ]; then pip install -r requirements/base.txt; fi sudo apt install poppler-utils pdftk - - name: Lint with pycodestyle + - name: Lint with flake8 run: | - pycodestyle mglib --count --max-line-length=127 --statistics - - name: Test with pytest + flake8 mglib + - name: Run tests run: | - coverage run -m pytest + python test/run.py diff --git a/README.md b/README.md index ccb717b..4f484ac 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,8 @@ Python Package containing modules shared across all [Papermerge Project](https:/ ## Run tests python test/run.py + + +## Requirements + + python >= 3.7