-
Notifications
You must be signed in to change notification settings - Fork 3
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
Option to run only gpu tests in conftest #206
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #206 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 12
Lines 1119 1121 +2
=========================================
+ Hits 1119 1121 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Shouldn't it be sufficient to modify the pytest invocation here directly in qibojit? |
ah yeah you're right it should be, let me try. |
Run on QPU
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @BrunoLiegiBastonLiegi!
src/qibojit/tests/conftest.py
Outdated
@@ -15,7 +25,10 @@ | |||
|
|||
|
|||
@pytest.fixture | |||
def backend(backend_name): | |||
def backend(backend_name, request): | |||
if request.config.getoption("--gpu_only"): # pragma: no cover |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this # pragma: no cover
is now ubiquitous...
Maybe we should take into account to extract tests from the package even in Qibojit...
Co-authored-by: Alessandro Candido <candido.ale@gmail.com>
Run on QPU
|
This adds an option in
conftest
to run on gpu only:This is useful for selfhosted tests as reported in #205.
The selfhosted workflow in
qiboteam/workflows
has most likely to be updated.