image: registry.sensetime.com/library/python:3.6 before_script: - python -V - python -m venv venv - source ./venv/bin/activate - python setup.py sdist - pip install dist/* stages: - flake8 - unit_test flake8: stage: flake8 script: - pip install flake8 - flake8 --ignore E501 --exclude '.git,.tox,*.egg-info,venv,scripts,tests,examples' . # todo remove scripts,tests,examples test: stage: unit_test script: - python tests/run_test.py