Skip to content

Commit 4014a22

Browse files
Merge pull request #813 from IntelPython/gen_coverage-to-ignore-libtensor
Generate coverage should ignore tests from dpctl/tensor/libtensor/tests
1 parent 0a396db commit 4014a22

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.github/workflows/generate-coverage.yaml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,24 @@ jobs:
8787
source /opt/intel/oneapi/setvars.sh
8888
export _SAVED_PATH=${PATH}
8989
export PATH=$(dirname $(dirname $(which icx)))/bin-llvm:${PATH}
90-
python setup.py develop -- \
91-
-G "Ninja" \
92-
-DCMAKE_BUILD_TYPE=Debug \
93-
-DCMAKE_C_COMPILER:PATH=icx \
94-
-DCMAKE_CXX_COMPILER:PATH=icpx \
95-
-DDPCTL_ENABLE_LO_PROGRAM_CREATION=ON \
96-
-DDPCTL_GENERATE_COVERAGE=ON \
97-
-DDPCTL_BUILD_CAPI_TESTS=ON \
98-
-DDPCTL_COVERAGE_REPORT_OUTPUT_DIR=$(pwd)
90+
python setup.py develop -- \
91+
-G "Ninja" \
92+
-DCMAKE_BUILD_TYPE=Debug \
93+
-DCMAKE_C_COMPILER:PATH=icx \
94+
-DCMAKE_CXX_COMPILER:PATH=icpx \
95+
-DDPCTL_ENABLE_LO_PROGRAM_CREATION=ON \
96+
-DDPCTL_GENERATE_COVERAGE=ON \
97+
-DDPCTL_BUILD_CAPI_TESTS=ON \
98+
-DDPCTL_COVERAGE_REPORT_OUTPUT_DIR=$(pwd)
9999
pushd $(find _skbuild -name cmake-build)
100100
cmake --build . --target lcov-genhtml || exit 1
101101
popd
102102
export PATH=${_SAVED_PATH}
103103
unset _SAVED_PATH
104104
python -c "import dpctl; print(dpctl.__version__); dpctl.lsplatform()" || exit 1
105-
pytest -q -ra --disable-warnings --cov-config pyproject.toml --cov dpctl --cov-report term-missing --pyargs dpctl -vv
105+
pytest -q -ra --disable-warnings --cov-config pyproject.toml --cov dpctl \
106+
--cov-report term-missing --pyargs dpctl -vv \
107+
--ignore=dpctl/tensor/libtensor/tests
106108
107109
- name: Install coverall dependencies
108110
shell: bash -l {0}

scripts/gen_coverage.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ def run(
9999
"--pyargs",
100100
"dpctl",
101101
"-vv",
102+
"--ignore=dpctl/tensor/libtensor/tests",
102103
],
103104
cwd=setup_dir,
104105
shell=False,

0 commit comments

Comments
 (0)