-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
50 lines (39 loc) · 910 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
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=./
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
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
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 python -m pytest --cov=./ --junitxml=junit.xml
test_env.down:
docker-compose down