.gitlab-ci.yml 427 Bytes
Newer Older
Tara Evaz Zadeh's avatar
Tara Evaz Zadeh committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
image: python:3-buster

# Make pip cache the installed dependencies
variables:
  PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
cache:
  paths:
    - .cache/pip
    - venv/

before_script:
  - python3 -V
  - pip3 install virtualenv
  - virtualenv venv
  - source venv/bin/activate
  - pip3 install .
Tara Evaz Zadeh's avatar
Tara Evaz Zadeh committed
17
  - pip3 install .[tests]
Tara Evaz Zadeh's avatar
Tara Evaz Zadeh committed
18
19
20
21
22
23

linters:
  script:
    - pip3 install .[linters]
    - make check

Tara Evaz Zadeh's avatar
Tara Evaz Zadeh committed
24
25
26
tests:
  script:
    - pytest tests