This repository has been archived by the owner on Sep 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (33 loc) · 1.44 KB
/
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
patch_release:
$(eval poetry_output=$(shell poetry version patch))
@echo $(poetry_output)
$(eval version_number=$(shell echo $(poetry_output) | cut -d' ' -f6))
@git add .
@git commit -m "New release $(version_number)"
@git tag -a $(version_number) -m "Release $(version_number)"
minor_release:
$(eval poetry_output=$(shell poetry version minor))
@echo $(poetry_output)
$(eval version_number=$(shell echo $(poetry_output) | cut -d' ' -f6))
@git add .
@git commit -m "New release $(version_number)"
@git tag -a $(version_number) -m "Release $(version_number)"
major_release:
$(eval poetry_output=$(shell poetry version major))
@echo $(poetry_output)
$(eval version_number=$(shell echo $(poetry_output) | cut -d' ' -f6))
@git add .
@git commit -m "New release $(version_number)"
@git tag -a $(version_number) -m "Release $(version_number)"
clean:
@rm -rf tests/output
@rm -rf build dist .eggs *.egg-info
@rm -rf .benchmarks .coverage coverage.xml htmlcov report.xml .tox
@find . -type d -name '.mypy_cache' -exec rm -rf {} +
@find . -type d -name '__pycache__' -exec rm -rf {} +
@find . -type d -name '*pytest_cache*' -exec rm -rf {} +
@find . -type f -name "*.py[co]" -exec rm -rf {} +
cpu_tests: clean
@poetry run pytest --cpu --cov=PrognosAIs --cov-config .coveragerc --cov-report=xml --cov-context=test tests/
gpu_tests: clean
@poetry run pytest --gpu --cov=PrognosAIs --cov-config .coveragerc --cov-report=xml --cov-context=test tests/