mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 09:28:51 -06:00
Run Julia tests on "make test"
This commit is contained in:
14
Makefile
14
Makefile
@@ -1,14 +1,15 @@
|
|||||||
PYTEST_ARGS := -W ignore::DeprecationWarning -vv -x --log-level=DEBUG
|
PYTEST_ARGS := -W ignore::DeprecationWarning -vv -x --log-level=DEBUG
|
||||||
|
JULIA := julia --color=yes --project=src/julia
|
||||||
|
|
||||||
all: docs test
|
all: docs test
|
||||||
|
|
||||||
develop:
|
develop:
|
||||||
cd src/python && python setup.py develop
|
cd src/python && python setup.py develop
|
||||||
julia --project=src/julia -e "using Pkg; Pkg.instantiate()"
|
$(JULIA) -e "using Pkg; Pkg.instantiate()"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
cd src/python && python setup.py install
|
cd src/python && python setup.py install
|
||||||
julia --project=src/julia -e "using Pkg; Pkg.instantiate()"
|
$(JULIA) -e "using Pkg; Pkg.instantiate()"
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
pip uninstall miplearn
|
pip uninstall miplearn
|
||||||
@@ -16,10 +17,15 @@ uninstall:
|
|||||||
docs:
|
docs:
|
||||||
mkdocs build
|
mkdocs build
|
||||||
|
|
||||||
test:
|
test: test-python test-julia
|
||||||
|
|
||||||
|
test-python:
|
||||||
cd src/python && pytest $(PYTEST_ARGS)
|
cd src/python && pytest $(PYTEST_ARGS)
|
||||||
|
|
||||||
|
test-julia:
|
||||||
|
$(JULIA) -e 'using Pkg; Pkg.test("MIPLearn")'
|
||||||
|
|
||||||
test-watch:
|
test-watch:
|
||||||
cd src/python && pytest-watch -- $(PYTEST_ARGS)
|
cd src/python && pytest-watch -- $(PYTEST_ARGS)
|
||||||
|
|
||||||
.PHONY: test test-watch docs
|
.PHONY: test test-python test-julia test-watch docs
|
||||||
|
|||||||
Reference in New Issue
Block a user