File size: 472 Bytes
2abfccb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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