-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
41 lines (33 loc) · 1.19 KB
/
justfile
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
set shell := ["sh", "-c"]
set dotenv-load := true
docker-push service:
docker build conf/{{service}} -t {{service}}
docker tag costy sergienkoandrew/costy:{{service}}
docker push sergienkoandrew/costy:{{service}}
install service:
mv pyproject.toml pyproject_tools.toml
cp conf/{{service}}/pyproject.toml pyproject.toml
uv sync --all-extras
rm -f pyproject.toml
mv pyproject_tools.toml pyproject.toml
install-all:
mv pyproject.toml pyproject_tools.toml
cp conf/costy/pyproject.toml pyproject.toml
uv sync --all-extras
rm -f pyproject.toml
cp conf/auth/pyproject.toml pyproject.toml
uv pip install -e .
rm -f pyproject.toml
mv pyproject_tools.toml pyproject.toml
install-ci service:
mv pyproject.toml pyproject_tools.toml
cp conf/{{service}}/pyproject.toml pyproject.toml
uv sync --extra ci
rm -f pyproject.toml
mv pyproject_tools.toml pyproject.toml
ci-tests service:
mv pyproject.toml pyproject_tools.toml
cp conf/{{service}}/pyproject.toml pyproject.toml
uv run coverage run --source=src/{{service}} -m pytest tests/{{service}} --module {{service}}
rm -f pyproject.toml
mv pyproject_tools.toml pyproject.toml