-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (34 loc) · 852 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (34 loc) · 852 Bytes
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
services:
app:
container_name: mpt_api_client
build:
context: .
dockerfile: prod.Dockerfile
working_dir: /mpt_api_client
stdin_open: true
tty: true
volumes:
- .:/mpt_api_client
env_file:
- .env
bash: &dev_base
image: mpt_api_client_dev
build:
context: .
dockerfile: dev.Dockerfile
working_dir: /mpt_api_client
stdin_open: true
tty: true
volumes:
- .:/mpt_api_client
env_file:
- .env
app_test:
<<: *dev_base
command: bash -c "ruff format --check . && ruff check . && flake8 . && mypy . && uv lock --check && pytest tests/unit"
format:
<<: *dev_base
command: bash -c "ruff check . --select I --fix && ruff format ."
e2e:
<<: *dev_base
command: bash -c "pytest -p no:randomly --junitxml=e2e-report.xml tests/e2e"