Skip to content
Snippets Groups Projects
Verified Commit ee61090b authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Run pytest from CI pipeline through tox.

parent cdb01489
No related branches found
No related tags found
No related merge requests found
stages:
- test
- build
- deploy
variables:
GIT_SUBMODULE_STRATEGY: recursive
test:
stage: test
image:
name: python:3.8-buster
before_script:
- apt-get -y update && apt-get -y install postgresql libpq5 libpq-dev libssl-dev
- pip install poetry
script:
- poetry install
- poetry run tox
build_docker:
stage: build
image:
......
......@@ -67,6 +67,7 @@ django-stubs = "^1.1"
pytest = "^5.3"
pytest-django = "^3.7"
pytest-django-testing-postgresql = "^0.1"
tox = "^3.14"
[build-system]
requires = ["poetry>=0.12"]
......
[tox]
skipsdist = True
envlist = py37
[testenv]
whitelist_externals = poetry
pytest
skip_install = true
commands = pytest
[pylama]
linters = pycodestyle,pydocstyle,pyflakes,radon
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment