mirror of https://github.com/papermerge/mglib
run flake8 + tests
parent
7982243dda
commit
7fe9928d74
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue