blob: c8c07a562c44e8e348834f21db892ab58ddb4561 (
plain)
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
|
image: "python:3.8"
variables:
PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
paths:
- .cache/pip
stages:
- static-analysis
- test
static-analysis:
stage: static-analysis
allow_failure: true
script:
- python --version
- pip install -r requirements.txt
- pylint opendc
test:
stage: test
script:
- python --version
- pip install -r requirements.txt
- pytest opendc
|