Skip to content

Commit

Permalink
build: prepare for test matrix (#176)
Browse files Browse the repository at this point in the history
* ci: add ci test directive

* tmp: test artifact name fix

* Apply suggestions from code review

---------

Co-authored-by: Vishwa Shah <vishwa2710@gmail.com>
  • Loading branch information
alex-liang3 and vishwa2710 authored Jan 13, 2025
1 parent 575bc75 commit 922e392
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,23 @@ test-unit-python-standalone: ## Run Python unit tests (standalone)

.PHONY: test-unit-python-standalone

ci-test-python: ## Run Python unit tests. Assumes the dev image has already been built, AND that bindings have been built and are available at `packages/python`

@ echo "Running Python unit tests..."

docker run \
--rm \
--volume="$(CURDIR):/app:delegated" \
--volume="/app/build" \
--workdir=/app/build \
$(docker_development_image_repository):$(docker_image_version) \
/bin/bash -c "python${test_python_version} -m pip install --root-user-action=ignore --target=${test_python_directory} --find-links packages/python open_space_toolkit_${project_name} \
&& 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: ci-test-python

test-coverage: ## Run test coverage cpp

@ echo "Running coverage tests..."
Expand Down

0 comments on commit 922e392

Please sign in to comment.