Skip to content

CYTHON_TRACE must be set when generating coverage #752

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 1, 2022

Conversation

oleksandr-pavlyk
Copy link
Contributor

@oleksandr-pavlyk oleksandr-pavlyk commented Jan 28, 2022

Setting of this preprocessor variable went missing in the move to
cmake + scikit-build (#746), resulting in coverage not going through Cython
files anymore. This change should restore that, and thus improve the
coverage percentage.

@github-actions
Copy link

@coveralls
Copy link
Collaborator

coveralls commented Jan 28, 2022

Coverage Status

Coverage increased (+2.02%) to 81.576% when pulling 6fab702 on restore-cython-coverage into 148e47e on master.

Setting of this proprocessor variable went missing in the move to
cmake + scikit-build, resulting in coverage not going through Cython
files anymore. This change should restore that, and thus improve the
coverage percentage.
When cython converts .pyx files to cxx it is now provided a working directory
option. This makes sure that generated `__pyx_f` array lists sources relative
to project directory.

When generating coverage, cmake adds a target to copy generated .cxx files to
the location of .pyx file.
@oleksandr-pavlyk oleksandr-pavlyk merged commit 05a5abd into master Feb 1, 2022
@oleksandr-pavlyk oleksandr-pavlyk deleted the restore-cython-coverage branch February 1, 2022 00:30
@github-actions
Copy link

github-actions bot commented Feb 1, 2022

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants