Skip to content

Commit

Permalink
fix git config, coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbarghi-nv committed Oct 14, 2024
1 parent c915472 commit a78dc8d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
branch: ${{ inputs.branch }}
date: ${{ inputs.date }}
sha: ${{ inputs.sha }}
wheel-tests-pylibcugraph:
wheel-tests-pylibwholegraph:
secrets: inherit
uses: rapidsai/shared-workflows/.github/workflows/[email protected]
with:
Expand Down
27 changes: 4 additions & 23 deletions ci/test_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ if [[ "${RUNNER_ARCH}" != "ARM64" ]]; then
# Reactivate the test environment back
set +u
conda deactivate
conda activate test
set -u
else
rapids-logger "skipping cugraph_dgl pytest on ARM64"
Expand All @@ -100,15 +99,6 @@ if [[ "${RUNNER_ARCH}" != "ARM64" ]]; then
conda activate test_cugraph_pyg
set -u

# TODO re-enable logic once CUDA 12 is testable
#if [[ "${RAPIDS_CUDA_VERSION}" == "11.8.0" ]]; then
CONDA_CUDA_VERSION="11.8"
PYG_URL="https://data.pyg.org/whl/torch-2.1.0+cu118.html"
#else
# CONDA_CUDA_VERSION="12.1"
# PYG_URL="https://data.pyg.org/whl/torch-2.1.0+cu121.html"
#fi

# Will automatically install built dependencies of cuGraph-PyG
rapids-mamba-retry install \
--channel "${CPP_CHANNEL}" \
Expand Down Expand Up @@ -137,7 +127,6 @@ if [[ "${RUNNER_ARCH}" != "ARM64" ]]; then
# Reactivate the test environment back
set +u
conda deactivate
conda activate test
set -u
else
rapids-logger "skipping cugraph_pyg pytest on ARM64"
Expand All @@ -151,13 +140,6 @@ if [[ "${RUNNER_ARCH}" != "ARM64" ]]; then
conda activate test_pylibwholegraph
set -u

# TODO re-enable logic once CUDA 12 is testable
#if [[ "${RAPIDS_CUDA_VERSION}" == "11.8.0" ]]; then
CONDA_CUDA_VERSION="11.8"
#else
# CONDA_CUDA_VERSION="12.1"
#fi

# Will automatically install built dependencies of pylibwholegraph
rapids-mamba-retry install \
--channel "${CPP_CHANNEL}" \
Expand All @@ -172,18 +154,17 @@ if [[ "${RUNNER_ARCH}" != "ARM64" ]]; then
rapids-logger "Check GPU usage"
nvidia-smi

rapids-logger "pytest cugraph_pyg (single GPU)"
./ci/run_cugraph_pyg_pytests.sh \
--junitxml="${RAPIDS_TESTS_DIR}/junit-cugraph-pyg.xml" \
rapids-logger "pytest pylibwholegraph (single GPU)"
./ci/run_pylibwholegraph_pytests.sh \
--junitxml="${RAPIDS_TESTS_DIR}/junit-pylibwholegraph.xml" \
--cov-config=../../.coveragerc \
--cov=cugraph_pyg \
--cov-report=xml:"${RAPIDS_COVERAGE_DIR}/cugraph-pyg-coverage.xml" \
--cov-report=xml:"${RAPIDS_COVERAGE_DIR}/pylibwholegraph-coverage.xml" \
--cov-report=term

# Reactivate the test environment back
set +u
conda deactivate
conda activate test
set -u
else
rapids-logger "skipping cugraph_pyg pytest on ARM64"
Expand Down
21 changes: 21 additions & 0 deletions python/.coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) 2024, NVIDIA CORPORATION.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Configuration file for Python coverage tests
[run]
include = cugraph-dgl/cugraph_dgl/*
cugraph-pyg/cugraph_pyg/*
pylibwholegraph/pylibwholegraph/*
omit = cugraph-dgl/cugraph_dgl/tests/*
cugraph-pyg/cugraph_pyg/tests/*
pylibwholegraph/pylibwholegraph/tests/*

0 comments on commit a78dc8d

Please sign in to comment.