File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -53,3 +53,17 @@ test-custom: build-image
5353 -e LABELBOX_TEST_GRAPHQL_API_ENDPOINT=${LABELBOX_TEST_GRAPHQL_API_ENDPOINT} \
5454 -e LABELBOX_TEST_REST_API_ENDPOINT=${LABELBOX_TEST_REST_API_ENDPOINT} \
5555 local/labelbox-python:test pytest $(PATH_TO_TEST )
56+
57+ test-ephemeral : build-image
58+
59+ @# if PATH_TO_TEST we assume you know what you are doing
60+ @if [ -z ${PATH_TO_TEST} ]; then \
61+ ./scripts/ensure_local_setup.sh; \
62+ fi
63+
64+ docker run -it --rm -v ${PWD}:/usr/src -w /usr/src \
65+ -e LABELBOX_TEST_ENVIRON="ephemeral" \
66+ -e DA_GCP_LABELBOX_API_KEY=${DA_GCP_LABELBOX_API_KEY} \
67+ -e LABELBOX_TEST_API_KEY_EPHEMERAL=${LABELBOX_TEST_API_KEY_LOCAL} \
68+ -e FIXTURE_PROFILE=true \
69+ local/labelbox-python:test pytest $(PATH_TO_TEST)
You can’t perform that action at this time.
0 commit comments