-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fix CD/CI notebooks #649
Fix CD/CI notebooks #649
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Some checks did not pass. This time dashboard and build for 3.11. |
Hi @elboyran , thanks for your quick comment. This is not ready for review. Because of our settings in cd/ci, some tests only run when the PR is switched from draft to ready for review, that's why. Sorry for the confusion. Anyway, I manage to fix all the builds and notebooks ci, but now dashboard fails 😓. I will try to fix it. |
@@ -44,7 +44,6 @@ runs: | |||
python3 -m pip install tensorflow-cpu | |||
|
|||
- name: Install DIANNA | |||
if: steps.cache-python-env.outputs.cache-hit != 'true' |
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.
When fixing the CI for notebooks, the build for python 3.11 on macos fails unexpectedly. Error message indicates that pytest
is not found. I figured out that it was due to the installation, in which pytest was installed for python 3 but the ci calls pytest from python via system path. Therefore, it can be fixed by simply change run: pytest -v
to run: python3 -m pytest -v
.
However, this build will fail again if the caching of package installation is used (not sure why...). By removing the cache, it works nicely. But this makes the CD/CI slower than before. If anyone has better solution, please let me know. Thanks.
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.
No other solution from me.
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 for fixing it, even if it's slower now.
@@ -44,7 +44,6 @@ runs: | |||
python3 -m pip install tensorflow-cpu | |||
|
|||
- name: Install DIANNA | |||
if: steps.cache-python-env.outputs.cache-hit != 'true' |
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.
No other solution from me.
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.
Some interesting things are happening here. I tried changing some things to more expected variations but I couldn't make them pass the builds. Great that you found a setup that indeed does all tests. Merge it!
No worry. Thanks a lot for your review. I think it is quite tricky....Patrick and Chris also tried hard but still couldn't find a better solution. Let's just keep it like this then. |
😅 It took me quite a while to find a solution. Tbh, I'm also not entirely sure about the cause of the failure. But they can be fixed this way. Thanks a lot for the review! |
Fix notebooks and build for CI/CD.
This PR closes #648 .