Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix python unit tests #130

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ docker_release_image_cpp_repository := $(docker_image_repository)-cpp
docker_release_image_python_repository := $(docker_image_repository)-python
docker_release_image_jupyter_repository := $(docker_image_repository)-jupyter

test_python_version := 3.11
test_python_directory := /usr/local/lib/python${test_python_version}/dist-packages

jupyter_notebook_port := 9005
jupyter_python_version := 3.11
jupyter_python_version_without_dot := $(shell echo $(jupyter_python_version) | sed 's/\.//')
Expand Down Expand Up @@ -530,10 +533,10 @@ test-unit-python-standalone: ## Run Python unit tests (standalone)
$(docker_development_image_repository):$(docker_image_version) \
/bin/bash -c "cmake -DBUILD_PYTHON_BINDINGS=ON -DBUILD_UNIT_TESTS=OFF .. \
&& $(MAKE) -j 4 \
&& python$(jupyter_python_version) -m pip install --root-user-action=ignore bindings/python/OpenSpaceToolkit*Py-python-package-$(jupyter_python_version) \
&& python$(jupyter_python_version) -m pip install plotly pandas \
&& cd /usr/local/lib/python$(jupyter_python_version)/dist-packages/ostk/$(project_name)/ \
&& python$(jupyter_python_version) -m pytest -sv ."
&& python${test_python_version} -m pip install --root-user-action=ignore --target=${test_python_directory} bindings/python/OpenSpaceToolkit*Py-python-package-${test_python_version} \
&& python${test_python_version} -m pip install --root-user-action=ignore --target=${test_python_directory} plotly pandas \
&& cd ${test_python_directory}/ostk/$(project_name)/ \
&& python${test_python_version} -m pytest -sv ."

.PHONY: test-unit-python-standalone

Expand Down
Loading