ci: use tox

This commit is contained in:
Luna 2021-07-09 22:22:53 -03:00
parent 22f5af9887
commit b7343e73ab
1 changed files with 4 additions and 8 deletions

View File

@ -14,14 +14,10 @@ cache:
tests: tests:
before_script: before_script:
- python -V - python -V
- apk --update add --no-cache build-base gcc libgcc libffi-dev openssl-dev git postgresql-client jpeg-dev openjpeg-dev zlib-dev freetype-dev lcms2-dev freetype-dev gifsicle - time apk --update add --no-cache build-base gcc libgcc libffi-dev openssl-dev git postgresql-client jpeg-dev openjpeg-dev zlib-dev freetype-dev lcms2-dev freetype-dev gifsicle
- pip3 install pipenv wheel tox - time pip3 install poetry wheel tox
- pipenv install --dev - time poetry install
script: script:
- ls - ls
- cp config.ci.py config.py - cp config.ci.py config.py
- pipenv --venv - time tox
- pipenv run ./manage.py migrate
- pipenv run black --check litecord run.py tests manage
- pipenv run flake8 litecord run.py tests manage
- pipenv run pytest tests