-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
59 lines (50 loc) · 1011 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- "$CI_PROJECT_DIR/.cache/pip"
stages:
- static-analysis
- doc
.flake8:
stage: static-analysis
image: python:3.8-buster
before_script:
- python --version
- pip install -U pip flake8
script:
- flake8 --max-line-length 88 compressai_vision data/mpeg-fcm
tags:
- docker
black:
stage: static-analysis
image: python:3.8-buster
before_script:
- python --version
- pip install -U pip black
script:
- black --check compressai_vision data/mpeg-fcm utils
tags:
- docker
isort:
stage: static-analysis
image: python:3.8-buster
before_script:
- python --version
- pip install -U pip isort
script:
- isort compressai_vision data/mpeg-fcm utils --check-only
tags:
- docker
doc:
cache: []
stage: doc
image: python:3.8-buster
before_script:
- python --version
- pip install -e .[doc]
- cd docs
script:
- make html
tags:
- docker