aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 703f44b..eee3e82 100644
--- a/Makefile
+++ b/Makefile
@@ -121,3 +121,16 @@ buildx/build:
.PHONY: buildx/push
buildx/push:
docker buildx build -t '$(call escape,$(DOCKER_USERNAME))/$(call escape,$(PROJECT))' --platform '$(call escape,$(PLATFORMS))' --progress plain --push .
+
+venv_dir := .venv
+
+.PHONY: venv
+venv:
+ rm -rf -- '$(call escape,$(venv_dir))'
+ mkdir -p -- '$(call escape,$(venv_dir))'
+ python -m venv -- '$(call escape,$(venv_dir))'
+ . '$(call escape,$(venv_dir))/bin/activate' && pip install -r requirements.txt
+
+.PHONY: test
+test:
+ . '$(call escape,$(venv_dir))/bin/activate' && python -m unittest --verbose --buffer