-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
49 lines (37 loc) · 843 Bytes
/
Makefile
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
CODECOV_UPLOAD_TOKEN ?= "notset"
CODECOV_URL ?= "https://api.codecov.io"
CODECOV_FLAG ?= ""
full_sha := $(shell git rev-parse HEAD)
export CODECOV_TOKEN=${CODECOV_UPLOAD_TOKEN}
.ONESHELL:
test:
docker compose exec shared uv run pytest --cov=./
test.path:
docker compose exec shared uv run pytest $(TEST_PATH)
lint:
make lint.install
make lint.run
lint.install:
echo "Installing..."
pip install -Iv ruff
lint.run:
ruff check
ruff format
lint.check:
echo "Linting..."
ruff check --fix
echo "Formatting..."
ruff format --check
requirements.install:
uv sync
. .venv/bin/activate
test_env.install_cli:
pip install codecov-cli
test_env.build:
docker compose build
test_env.up:
docker compose up -d
test_env.test:
docker compose exec shared uv run pytest --cov=./ --junitxml=junit.xml
test_env.down:
docker compose down