tox: attempt to run migrations inside tox env

This commit is contained in:
Luna 2021-07-09 23:48:50 -03:00
parent e5609f3161
commit d58f1aaad6
2 changed files with 2 additions and 3 deletions

View File

@ -16,10 +16,8 @@ tests:
- python -V - python -V
- 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 rust cargo - 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 rust cargo
- time pip3 install --upgrade pip - time pip3 install --upgrade pip
- time pip3 install wheel tox poetry - time pip3 install wheel tox
script: script:
- ls - ls
- cp config.ci.py config.py - cp config.ci.py config.py
- poetry install
- poetry run ./manage.py migrate
- time tox - time tox

View File

@ -13,6 +13,7 @@ deps =
mypy==0.910 mypy==0.910
pytest-instafail==0.4.2 pytest-instafail==0.4.2
commands = commands =
python3 ./manage.py migrate
black --check litecord run.py tests manage black --check litecord run.py tests manage
flake8 litecord run.py tests manage flake8 litecord run.py tests manage
pytest {posargs:tests} pytest {posargs:tests}