-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (31 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
LICENSE_CONFIG?="license-config.json"
LICENSE:
@echo "you must have a LICENSE file" 1>&2
exit 1
LICENSE_HEADER:
@echo "you must have a LICENSE_HEADER file" 1>&2
exit 1
node_modules/license-check-and-add:
npm ci
.PHONY: poetry-ensure-installed
poetry-ensure-installed:
sh ./tools/poetry_ensure_installed.sh
.PHONY: install
install: poetry-ensure-installed
poetry config --local virtualenvs.in-project true
poetry env use python3.9
poetry install
.PHONY: license
license: LICENSE_HEADER
npm run license:fix
.PHONY: license-deploy
license-deploy: node_modules/license-check-and-add LICENSE LICENSE_HEADER
LICENSE_CONFIG=${LICENSE_CONFIG} npm run license:deploy
.PHONY: test
test:
rm -rf tests/fixtures/data_out/*/*
# requires a valid http url:
SBERT_ENDPOINT=http://sbert GRAPHQL_ENDPOINT=http://graphql \
poetry run coverage run \
--omit="$(PWD)/tests $(VENV)" \
-m pytest -vv $(args)