-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
47 lines (40 loc) · 940 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
backend:
needs: []
image: python:latest
tags:
- docker
cache:
key: poetry
paths:
- backend/.cache/pip
- backend/.venv
before_script:
- python -V
- pip install poetry
- cd backend
- poetry config virtualenvs.in-project true
- poetry install
script:
- poetry run black . --check
- poetry run isort . --check-only
- poetry run mypy
- poetry run coverage run -m pytest
- poetry run coverage report --skip-empty
frontend:
needs: []
image: node:latest
tags:
- docker
cache:
key: npm
paths:
- frontend/.npm/
before_script:
- node --version
- npm --version
- cd frontend
- npm ci --cache .npm --prefer-offline
script:
- npm run format\:check
- npm run lint
- npm run build