diff --git a/ci/scripts/coverage.sh b/ci/scripts/coverage.sh index 532fe8dd9..14c3688e0 100755 --- a/ci/scripts/coverage.sh +++ b/ci/scripts/coverage.sh @@ -128,10 +128,10 @@ function main() { TARGET_NANOARROW_PYTHON_DIR="${TARGET_NANOARROW_DIR}/python" pushd "${TARGET_NANOARROW_PYTHON_DIR}" - NANOARROW_PYTHON_COVERAGE=1 python -m pip install -e . + python -m pip install -Csetup-args="-Db_coverage=true" . # Run tests + coverage.py (generates .coverage with absolute file paths) - python -m pytest --cov ./src/nanoarrow + python -m pytest --cov tests/ # Generate HTML report (file paths not important since it's just for viewing) python -m coverage html