Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/generate_coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
conda activate coverage
[ -f /opt/intel/oneapi/setvars.sh ] && source /opt/intel/oneapi/setvars.sh
git clean -fxd
python scripts/gen_coverage.py --verbose
python scripts/gen_coverage.py

- name: Total number of coverage attempts
run: |
Expand Down
4 changes: 1 addition & 3 deletions scripts/gen_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ def run(
"term-missing",
"--pyargs",
"dpnp",
"-vv",
*pytest_opts.split(),
],
cwd=setup_dir,
Expand All @@ -109,8 +108,6 @@ def run(
)

def find_objects():
import os

objects = []
dpnp_path = os.getcwd()
search_path = os.path.join(dpnp_path, "dpnp")
Expand Down Expand Up @@ -146,6 +143,7 @@ def find_objects():
"export",
"-format=lcov",
"-ignore-filename-regex=/tmp/icpx*",
r"-ignore-filename-regex=.*/backend/kernels/elementwise_functions/.*\.hpp$",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are also kernels in extensions which will have to be ignored

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do that in the follow up PR, because they have to be separated to dedicated headers first. Otherwise it's impossible to ignore.

"-instr-profile=" + instr_profile_fn,
]
+ objects
Expand Down
Loading