Skip to content

Commit

Permalink
investigate
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknw committed Jan 23, 2024
1 parent f072c8f commit 0f10c63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 5 additions & 2 deletions ci/test_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,11 @@ echo "nx-cugraph coverage from networkx tests: $_coverage"
echo $_coverage | awk '{ if ($NF == "0.0%") exit 1 }'
# Ensure all algorithms were called by comparing covered lines to function lines.
# Run our tests again (they're fast enough) to add their coverage, then create coverage.json
pytest --cov=nx_cugraph --cov-append --cov-report=
coverage json
coverage report
coverage report --data-file=.coverage
pytest --cov=nx_cugraph --cov-append --data-file=.coverage
coverage json --data-file=.coverage
cat coverage.json
python nx_cugraph/tests/ensure_algos_covered.py
popd

Expand Down
3 changes: 1 addition & 2 deletions python/nx-cugraph/run_nx_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@ NETWORKX_FALLBACK_TO_NX=True \
pytest \
--pyargs networkx \
--cov=nx_cugraph \
--cov-report= \
"$@"
coverage report --include="nx_cugraph/algorithms/*" --omit=__init__.py --show-missing
coverage report --include="nx_cugraph/algorithms/*" --omit=__init__.py --show-missing --data-file=.coverage

0 comments on commit 0f10c63

Please sign in to comment.