Browse Source

run flake8 + tests

master
Eugen Ciur 2 years ago
parent
commit
7fe9928d74
  1. 12
      .github/workflows/python-app.yml
  2. 5
      README.md

12
.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

5
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

Loading…
Cancel
Save