-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile
53 lines (41 loc) · 1000 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
50
51
52
53
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 python -m pytest --cov=./
test.path:
docker compose exec shared python -m 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:
python -m venv venv
. venv/bin/activate
pip install -r tests/requirements.txt
pip install -r requirements.txt
python setup.py develop
pip install codecov-cli==0.7.2
test_env.install_cli:
pip install codecov-cli==0.7.2
test_env.build:
docker-compose build
test_env.up:
docker-compose up -d
test_env.test:
docker-compose exec shared python -m pytest --cov=./ --junitxml=junit.xml
test_env.down:
docker-compose down