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
|
- name: Set up Python 3.8
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.7
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
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
|
if [ -f requirements/base.txt ]; then pip install -r requirements/base.txt; fi
|
||||||
sudo apt install poppler-utils pdftk
|
sudo apt install poppler-utils pdftk
|
||||||
- name: Lint with pycodestyle
|
- name: Lint with flake8
|
||||||
run: |
|
run: |
|
||||||
pycodestyle mglib --count --max-line-length=127 --statistics
|
flake8 mglib
|
||||||
- name: Test with pytest
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
coverage run -m pytest
|
python test/run.py
|
||||||
|
|
Loading…
Reference in New Issue