Skip to content
Snippets Groups Projects
Commit 194e2864 authored by Maeva Pourpoint's avatar Maeva Pourpoint
Browse files

Update tox.ini and .gitlab-ci.yml to test Python 3 code updates

parent ce83ada0
No related branches found
No related tags found
1 merge request!5Porting Python 2 code to Python 3
Pipeline #890 passed with stage
in 52 seconds
...@@ -20,17 +20,26 @@ stages: ...@@ -20,17 +20,26 @@ stages:
before_script: before_script:
- pip install -e .[dev] - pip install -e .[dev]
python3.6:
image: python:3.6
tags:
- passoft
stage: test
script:
- python -m unittest
python2: python3.7:
image: python:2.7 image: python:3.7
tags: tags:
- passoft - passoft
stage: test stage: test
script: tox -e py27 script:
- python -m unittest
python3: python3.8:
image: python:3.6 image: python:3.8
tags: tags:
- passoft - passoft
stage: test stage: test
script: tox -e py36 script:
- python -m unittest
[tox] [tox]
envlist = py27, py36 flake8 envlist = py36, py37, py38
[travis]
python =
2.7: py27
3.6: py36
[testenv:flake8]
basepython = python
deps = flake8
commands = flake8 ckmseed
[testenv] [testenv]
setenv = commands = python -m unittest
PYTHONPATH = {toxinidir}
commands=python setup.py test
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