-
Notifications
You must be signed in to change notification settings - Fork 14
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
Enable Windows CI tests #81
Conversation
Little typo in commit message: "envrionement" |
e4476b6
to
3f85f26
Compare
import pytest | ||
|
||
|
||
@pytest.mark.skipif( | ||
platform.system() == "Windows", | ||
reason=r"python: can't open file 'D:\a\samples\sample_capture_from_file.py': [Errno 2] No such file or directory", |
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.
Maybe you can make an issue to investigate this further later.
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.
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.
It is hard to find the link between this code and #82.
- Investigate why running samples fails on windows #82 should mention that these two tests should be re-enabled.
- The
reason
here should reference Investigate why running samples fails on windows #82.
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.
It looks like this is already addressed in #85. No need to do anything with this now, but in general, it is a good rule to never leave loose ends around in master
. Often they are not going to be cleaned up right away when things are still fresh in memory.
In order to run tests on Windows, Intel OpenCL runtime needs to be installed to run the tests on a compute device. It is also required to create a configuration file so that the tests are run on the CPU instead of a GPU (since there are no GPU available in azure-pipelines) Added update environment script in order to load the latest environment variables set by `Zivid-SDK` after successful installation. `PATH` environment variable must be updated befre running the tests. Ignored sample testing for windows, because of the following error: ``` python: can't open file 'D:\a\samples\sample_print_version_info.py': [Errno 2] No such file or directory ``` Ignored `winreg` import error, this module is not available on Linux
3f85f26
to
2eeee66
Compare
Ready for next round @eskaur |
Thank you for reviewing @eskaur |
In order to run tests on Windows, Intel OpenCL runtime needs to be
installed to run the tests on a compute device. It is also required to
create a configuration file so that the tests are run on the CPU instead
of a GPU (since there are no GPU available in azure-pipelines)
Added update environment script in order to load the latest envrionement
variables set by
Zivid-SDK
after successful installation.PATH
environment variable must be updated befre running the tests.
Ignored sample testing for windows, because of the following error:
Ignored
winreg
import error, this module is not available on Linux