Run examples in cmake CI#695
Conversation
|
For I believes this should be run by the CI's example test jobs. Would this cover your needs for the other files? Cheers, |
Codecov Report
@@ Coverage Diff @@
## development #695 +/- ##
===============================================
- Coverage 88.64% 88.55% -0.09%
===============================================
Files 131 131
Lines 7926 7926
===============================================
- Hits 7026 7019 -7
- Misses 900 907 +7
Continue to review full report at Codecov.
|
OK. Got it. I will update the CI accordingly... The point is that the other 2 tests (loop_unroller and opt_loops) require building some executables. I have tried in this CI adding the other tests: #642 but I found myself opening a can of worms trying to get those test files working for different jobs that use bazel, CMake, or pip install. If I can get those examples to work with CMake only, and then look into getting them to work in other jobs that would be great. |
Ah, sorry, I see now.
I think you need to use CMake's testing https://cmake.org/cmake/help/book/mastering-cmake/chapter/Testing%20With%20CMake%20and%20CTest.html TBH I'm not super familiar with it, but you could maybe write a test job that depends on the cmake build and runs Cheers, |
292c623 to
2706976
Compare
|
So far, this is working:
However, this is not working:
|
According to https://github.com/actions/download-artifact#permission-loss: ``` ❗ File permissions are not maintained during artifact upload ❗ ```
|
OK. I just noticed that about GitHub's upload/download artifcats: https://github.com/actions/download-artifact#permission-loss: So now I have |
|
Good progress @mostafaelhoushi! |
|
@mostafaelhoushi, these shouldn't be necessary: Do you see the UI button to re-run jobs? |
For some reason that "re-run jobs" button doesn't always appear to me. Most of the time it is not there :( |
|
Oh weird, but sometimes it is? So not a permission issue? |
|
Hmm, guess we're stuck in a queue somewhere |
|
Bit just be one of those "grab a cup of coffee and come back later" messages |
|
Never mind... the test ran... the problem was solved... but now hit another error: I think that should be easy to solve: upload that |
and also remove running examples during build-linux-cmake
|
Is there a difference between The compute_observation binary is in the wheel |
OK. I wasn't aware of |
|
build-linux-cmake and test-linux-cmake are now green. We can merge it now. In upcoming PRs I will remove the calls to the examples from ci.yaml and ensure that pytest runs them instead. |
1 similar comment
|
build-linux-cmake and test-linux-cmake are now green. We can merge it now. In upcoming PRs I will remove the calls to the examples from ci.yaml and ensure that pytest runs them instead. |




Addresses #596