.gitlab-ci.yml 442 Bytes
Newer Older
Jonah Brüchert's avatar
Jonah Brüchert committed
1
2
3
4
5
lint:
  image: python:alpine
  before_script:
    - pip3 install -r requirements.txt
    - apk add gcc musl-dev
Jonah Brüchert's avatar
Jonah Brüchert committed
6
    - pip3 install pylint flake8 black mypy pytest
Jonah Brüchert's avatar
Jonah Brüchert committed
7
8
  script:
    - ./scripts/lint.sh
Jonah Brüchert's avatar
Jonah Brüchert committed
9
10
11
  cache:
    paths:
      - /root/.cache/pip/
Jonah Brüchert's avatar
Jonah Brüchert committed
12
13
14
15
16
17
18
19
20

test:
  image: python:alpine
  before_script:
    - pip3 install -r requirements.txt
    - pip3 install pytest
    - apk add git
  script:
    - pytest
Jonah Brüchert's avatar
Jonah Brüchert committed
21
22
23
  cache:
    paths:
      - /root/.cache/pip/