Skip to content

Commit f54d680

Browse files
committed
Skip doctest-glob if not documentation job
1 parent 896a226 commit f54d680

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ci/scripts/python_test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,8 @@ export PYARROW_TEST_S3
7070

7171
# Testing PyArrow
7272
pytest -r s ${PYTEST_ARGS} --pyargs pyarrow
73-
pytest ${PYTEST_RST_ARGS} ${arrow_dir}/docs/source/python
73+
74+
# Testing RST documentation examples (if PYTEST_RST_ARGS is set)
75+
if [ -n "${PYTEST_RST_ARGS}" ]; then
76+
pytest ${PYTEST_RST_ARGS} ${arrow_dir}/docs/source/python
77+
fi

0 commit comments

Comments
 (0)