File tree Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Expand file tree Collapse file tree 3 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -39,26 +39,32 @@ jobs:
39
39
- name : Install Lcov
40
40
run : |
41
41
sudo apt-get install lcov
42
+
42
43
- name : Install dpnp dependencies
43
44
run : |
44
45
conda install cython llvm cmake">=3.21" scikit-build ninja pytest pytest-cov coverage[toml] \
45
46
dpctl dpcpp_linux-64 sysroot_linux-64">=2.28" mkl-devel-dpcpp tbb-devel onedpl-devel ${{ env.CHANNELS }}
47
+
46
48
- name : Conda info
47
49
run : |
48
50
conda info
49
51
conda list
52
+
50
53
- name : Build dpnp with coverage
51
54
run : |
52
55
python scripts/gen_coverage.py --pytest-opts="--ignore tests/test_random.py"
56
+
53
57
- name : Install coverall dependencies
54
58
run : |
55
59
sudo gem install coveralls-lcov
56
60
pip install coveralls==3.2.0
61
+
57
62
- name : Upload coverage data to coveralls.io
58
63
run : |
59
64
echo "Processing pytest-coverage"
60
65
export DPNP_PYTEST_LCOV=$(find . -name dpnp_pytest.lcov)
61
66
coveralls-lcov -v -n $DPNP_PYTEST_LCOV > pytest-dpnp-c-api-coverage.json
67
+
62
68
# merge file with coverage data and upload
63
69
echo "Merging files with coverage data"
64
70
coveralls --service=github --merge=pytest-dpnp-c-api-coverage.json
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ function(build_dpnp_cython_ext _trgt _src _dest)
8
8
add_dependencies (${_trgt} ${_trgt_deps} )
9
9
if (DPNP_GENERATE_COVERAGE )
10
10
target_compile_definitions (${_trgt} PRIVATE CYTHON_TRACE=1 CYTHON_TRACE_NOGIL=1 )
11
+ target_compile_options (${_trgt} PRIVATE "-fno-sycl-use-footer" )
11
12
endif ()
12
13
target_compile_definitions (${_trgt} PRIVATE NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION )
13
14
# NumPy
Original file line number Diff line number Diff line change @@ -82,10 +82,14 @@ def find_objects():
82
82
objects = []
83
83
dpnp_path = os .getcwd ()
84
84
search_path = os .path .join (dpnp_path , "dpnp" )
85
- files = os .listdir (search_path )
86
- for file in files :
87
- if file .endswith ("_c.so" ):
88
- objects .extend (["-object" , os .path .join (search_path , file )])
85
+ for root , _ , files in os .walk (search_path ):
86
+ for file in files :
87
+ if (
88
+ file .endswith ("_c.so" )
89
+ or root .find ("extensions" ) != - 1
90
+ and file .find ("_impl.cpython" ) != - 1
91
+ ):
92
+ objects .extend (["-object" , os .path .join (root , file )])
89
93
return objects
90
94
91
95
objects = find_objects ()
@@ -112,7 +116,8 @@ def find_objects():
112
116
"-ignore-filename-regex=/tmp/icpx*" ,
113
117
"-instr-profile=" + instr_profile_fn ,
114
118
]
115
- + objects ,
119
+ + objects
120
+ + ["-sources" , "dpnp" ],
116
121
stdout = fh ,
117
122
)
118
123
You can’t perform that action at this time.
0 commit comments