-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
49 lines (48 loc) · 1.09 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
version: "3.8"
name: datajoint-link
services:
build:
build: .
volumes:
- $PWD/dist:/src/dist
entrypoint: ["pdm", "build"]
functional_tests:
build: .
volumes:
- $PWD/link:/src/link:ro
- $PWD/tests:/src/tests:ro
- /var/run/docker.sock:/var/run/docker.sock
environment:
DOCKER_NETWORK: datajoint-link_test
networks:
- test
entrypoint: ["pdm", "run", "pytest"]
command: ["tests/functional"]
tests_with_coverage:
build: .
volumes:
- $PWD/link:/src/link:ro
- $PWD/tests:/src/tests:ro
- $PWD/reports:/src/reports
- /var/run/docker.sock:/var/run/docker.sock
environment:
DOCKER_NETWORK: datajoint-link_test
networks:
- test
command: [
"pytest",
"--cov",
"--cov-report=xml:/src/reports/coverage.xml",
"--cov-config=pyproject.toml", # Workaround for https://github.com/nedbat/coveragepy/issues/512
]
black:
build: .
command: ["lint_black"]
mypy:
build: .
command: ["lint_mypy"]
ruff:
build: .
command: ["lint_ruff"]
networks:
test: