Skip to content

Commit

Permalink
ci: Fix code coverage for Python library (#671)
Browse files Browse the repository at this point in the history
closes #670
  • Loading branch information
WillAyd authored Nov 1, 2024
1 parent f8a6760 commit d9cc164
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/scripts/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9cc164

Please sign in to comment.