mirror of
https://github.com/cedricbonhomme/Stegano.git
synced 2025-06-30 03:56:14 +02:00
Using poetry to generate test builds.
This commit is contained in:
parent
cfe3a1325c
commit
6e9dff3c79
5 changed files with 294 additions and 14 deletions
|
@ -6,14 +6,23 @@ packages:
|
|||
- python3-dev
|
||||
- python3-pip
|
||||
tasks:
|
||||
- test: |
|
||||
pip3 install pipenv
|
||||
- dependencies: |
|
||||
pip3 install poetry
|
||||
PATH=$PATH:/home/build/.local/bin
|
||||
cd Stegano
|
||||
pipenv install
|
||||
pipenv install --dev
|
||||
pipenv run nosetests --with-coverage --cover-package=stegano
|
||||
poetry install
|
||||
- link: |
|
||||
PATH=$PATH:/home/build/.local/bin
|
||||
cd Stegano
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
||||
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
||||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
||||
- test: |
|
||||
PATH=$PATH:/home/build/.local/bin
|
||||
cd Stegano
|
||||
poetry run nosetests --with-coverage --cover-package=stegano
|
||||
- typecheck: |
|
||||
PATH=$PATH:/home/build/.local/bin
|
||||
cd Stegano
|
||||
pipenv run python tools/run_mypy.py
|
||||
poetry run python tools/run_mypy.py
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue