This is an automated email from the ASF dual-hosted git repository.
paleolimbot pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-nanoarrow.git
The following commit(s) were added to refs/heads/main by this push:
new d9cc1642 ci: Fix code coverage for Python library (#671)
d9cc1642 is described below
commit d9cc16420f932b62aa63da9e9ca7d249898742cf
Author: William Ayd <[email protected]>
AuthorDate: Thu Oct 31 23:43:03 2024 -0400
ci: Fix code coverage for Python library (#671)
closes https://github.com/apache/arrow-nanoarrow/issues/670
---
ci/scripts/coverage.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ci/scripts/coverage.sh b/ci/scripts/coverage.sh
index 532fe8dd..14c3688e 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