run flake8 + tests

master
Eugen Ciur 2020-11-29 08:50:46 +01:00
parent 7982243dda
commit 7fe9928d74
2 changed files with 11 additions and 6 deletions

View File

@ -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

View File

@ -11,3 +11,8 @@ Python Package containing modules shared across all [Papermerge Project](https:/
## Run tests
python test/run.py
## Requirements
python >= 3.7