diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d73ce22b107243ae195d73e528dfed5d48e113ec..73bcdaf13dec4c0cf8937bfb36afdec54fc4fd7e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: "python:3.7" +image: "painless/tox" before_script: - python --version @@ -20,6 +20,6 @@ pylint: script: - pylint -d C0301 setup.py sch/*.py -pytest: +tox: stage: Unit testing - script: make test + script: tox diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000000000000000000000000000000000000..d4e7a00ddf97da690ad7b577b80189f843d2b062 --- /dev/null +++ b/tox.ini @@ -0,0 +1,13 @@ +# tox (https://tox.readthedocs.io/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox" from this directory. + +[tox] +envlist = py35, py36, py37, py38 + +[testenv] +deps = + pytest +commands = + pytest