-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmise.toml
More file actions
33 lines (27 loc) · 792 Bytes
/
mise.toml
File metadata and controls
33 lines (27 loc) · 792 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
[tools]
uv = "latest"
[vars]
test_exec = "docker compose exec test"
[tasks."test"]
description = "Run Python tests in container"
depends = ["test:start"]
run = [
"{{vars.test_exec}} bash -c 'uv sync'",
'{{vars.test_exec}} uv run pytest {{arg(name="pytest_args", var=true, default="")}}'
]
[tasks."test:bash"]
description = "Open interactive shell in test container"
run = "{{vars.test_exec}} bash"
[tasks."test:rebuild"]
description = "Force rebuild the test container"
run = [
"docker compose down -v --remove-orphans",
"docker compose build test",
"docker compose up -d"
]
[tasks."test:start"]
description = "Start the test container"
run = "docker compose up -d test"
[tasks."test:stop"]
description = "Stop the test container"
run = "docker compose down --remove-orphans"