-
Notifications
You must be signed in to change notification settings - Fork 83
/
Makefile
52 lines (38 loc) · 1.07 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
39
40
41
42
43
44
45
46
47
48
49
50
51
install-test-requirements:
python -m pip install .[test]
install-build-requirements:
python -m pip install .[build]
build:
python -m build
install: build
pip install dist/*.whl
uninstall:
pip uninstall -y gradient-free-optimizers
rm -fr build dist *.egg-info
install-editable:
pip install -e .
reinstall: uninstall install
reinstall-editable: uninstall install-editable
test-visual:
cd tests/local; \
python _visualize_search_paths.py
test-gfo:
python -m pytest -x -p no:warnings -rfEX tests/
test-examples:
cd tests; \
python _test_examples.py
test-hyper:
# test if new version of gfo works with current release of hyperactive
pip install --upgrade --force-reinstall hyperactive; \
make install; \
cd ../Hyperactive; \
make test
test-timings:
python -m pytest -x -p no:warnings -rfEX tests/_test_memory.py
python -m pytest -x -p no:warnings -rfEX tests/test_optimizers/_test_max_time.py
python -m pytest -x -p no:warnings -rfEX tests/test_optimizers/_test_memory_warm_start.py
test:
make test-gfo
make test-timings
make test-examples
make test-hyper