Skip to content
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

Adds a new github CI Action to generate coverage and upload to coveralls #1373

Conversation

vlad-perevezentsev
Copy link
Collaborator

This PR adds a new script gen_coverage.py to build dpnp develop with coverage paraments and generate coverage reports.
Also adds generate_coverage.yaml to run the build on GitHub Action and upload reports to coveralls.io

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you filing the PR as a draft?

- name: Build dpnp with coverage
run: |
python scripts/gen_coverage.py --pytest-opts="--ignore tests/test_random.py \
--ignore tests/test_strides.py"
Copy link
Contributor

Choose a reason for hiding this comment

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

Probably it would be good to have a separate variable with a list of ignoring tests.

@@ -1,6 +1,6 @@
import math
import pytest
from .helper import get_all_dtypes
from .helper import get_all_dtypes, is_cpu_device
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess the change is not needed anymore.

Use `sys.executable` instead of `"python"` in `check_output` call
@oleksandr-pavlyk
Copy link
Contributor

I think this can be merged now, especially given that it is being merged to another branch.

@oleksandr-pavlyk oleksandr-pavlyk merged commit 10018ba into IntelPython:use-skbuild-and-cmake Apr 7, 2023
@vlad-perevezentsev vlad-perevezentsev deleted the add_gen_coverage branch August 10, 2023 09:21
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.

3 participants