-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
ENH: Fix GitHub actions notebook test workflow #96
ENH: Fix GitHub actions notebook test workflow #96
Conversation
Download the data to the path expected by the notebooks.
Define explicitly the Jupyter notebooks to be tested. Although not strictly necessay since notebooks do not depend on each other's results, the notebooks are listed in the order they are expected to be run (by default `pytest` collects them in alphabetical order).
Change GitHub Actions test workflow to run weekly instead of on `push` events.
Deploy preview for carpentries-dmri ready! Built with commit 74da157 |
We will not know if this works until we merge it. And hopefully we can know by tomorrow if we merge it before. After what we have discussed so far about the CI tests and cross referencing PRs #41 and #46, this PR proposed to:
As far as I see, our notebooks do not have fill-in-the-gaps like exercises as it was the case in previous versions (cross referencing #85 (comment)). However, I've seen that exercises are only stated in the Markdown files, being the Adding the non-solutions files to the CI tests is left for a separate PR. If at some point we switch to fill-in-the-gaps like exercises:
If the weekly tests pass after this PR is merged:
Triggering tests on PRs might be considered once all the above has hopefully been addressed and we are still under the time limit bill. Or we may think of triggering the tests only for the lightest notebooks on PRs, reduce the number of Python versions tested while keeping the weekly So in summary, this PR is ready to be merged and the rest of the enhancements can come in separate PRs. |
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 this @jhlegarreta. Could you try changing the cache key?
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
and restore keys to
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
${{ runner.os }}-pip-
Fix the cache key.
@josephmje Done in 74da157. |
Also, I've seen the CI output from yesterday: We made progress (intro and DTI passing), but now the CSD fails due to a timeout. Cells have 30 minutes to do their job, which seem largely enough; especially for the one failing, which is the FRF display. That cell takes almost no time when running the notebook on the browser, but I've tested locally with the
or
I've been unable to successfully exclude the preprocessing notebobok even. We'd still need to mark the problematic cells with Also, that would collect the tests in alphabetic order (i.e. CSD before any other one for the current episodes). Although not a problem, does not follow the lesson workflow. So we're left with the following possibility to see the tests passing:
|
Cross-referencing #128. |
Fix GitHub actions notebook test workflow
Fixes #31.