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

build: prepare for test matrix #312

Merged
merged 2 commits into from
Jan 13, 2025
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
17 changes: 17 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,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

vishwa2710 marked this conversation as resolved.
Show resolved Hide resolved
test-coverage: ## Run test coverage cpp

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