-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (59 loc) · 1.36 KB
/
docker-compose.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
60
61
62
version: "3.9"
services:
dev:
build:
context: .
args:
BASE: cblessing24/python3.8:latest
env_file: .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- compenv:/src
command: "zsh"
build:
image: cblessing24/compenv:latest
volumes:
- .:/src
entrypoint: ["pdm"]
command: "build"
pytest:
image: cblessing24/compenv:latest
volumes:
- .:/src
- pypackages:/src/__pypackages__
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DOCKER=1
networks:
- test
command: ["pytest"]
pytest_github:
image: cblessing24/compenv:latest
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./reports:/src/reports
environment:
- DOCKER=1
networks:
- test
command: ["pytest", "--cov", "--cov-report=xml:/src/reports/coverage.xml"]
black:
image: cblessing24/compenv:latest
command: ["black", "--check", "--diff", "."]
isort:
image: cblessing24/compenv:latest
command: ["isort", "--check-only", "--diff", "."]
mypy:
image: cblessing24/compenv:latest
command: ["scripts/mypy_wrapper.sh"]
flake8:
image: cblessing24/compenv:latest
command: ["flake8", "."]
pylint:
image: cblessing24/compenv:latest
command: ["pylint", "compenv"]
volumes:
compenv:
pypackages:
networks:
test: