-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
ENH: Add additional environment to tox
to run notebooks
#35
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #35 +/- ##
=======================================
Coverage ? 67.45%
=======================================
Files ? 20
Lines ? 977
Branches ? 129
=======================================
Hits ? 659
Misses ? 265
Partials ? 53 ☔ View full report in Codecov by Sentry. |
d3e9274
to
be31b08
Compare
Looks like we will need to also install some latex packages in the test environment. |
ed83e67
to
76f3e6a
Compare
So the files are there:
but somehow we are not providing
The following works at the root of the project (with or without the dot):
I've run out of ideas here. |
776605a
to
049a576
Compare
This is working now: But the LaTeX package issues persist. |
13e5000
to
953b601
Compare
Finally got this sorted out. The remaining error is related to issue #25:
There is a warning unrelated to the notebooks:
Not sure how to fix that. I'd leave it for a separate PR even if I know that we are now considering warnings as errors. This is ready to be merged on my end. |
Add an additional environment to `tox` to run notebooks. Add a new table to `pyproject.toml` to host the `jupyter`, `nbclient` and `nbmake` dependencies so that the notebooks can be run. Install the necessary TeX packages in the test CI so that LaTeX decoration in plots can be employed. Install the necessary additional Python packages used across the notebooks. Add a helper Python script to actually run the notebooks since `tox` does not expand wildcards currently.
Store bold realignment results in a folder that actually exists. Fixes: ``` FAILED docs/notebooks/bold_realignment.ipynb::bold_realignment.ipynb - PermissionError: [Errno 13] Permission denied: '/data/derivatives' ``` raised for example in: https://github.com/nipreps/nifreeze/actions/runs/12847776534/job/35824459079?pr=35#step:12:1684
953b601
to
c268d04
Compare
Running the `ismrm_sample.txt``:
For each ds00XXXX folder, the dataset has to be datalad cloned and then the specific runs must be datalad gotten. For each of those files a realignment process will be kicked off. I think this is way more than GHA will handle. |
Skip BOLD realignment notebook in GHA CI testing, as it involves running a realignment process for several DataLad datasets, which requires long running times.
Skipping it. I will open an issue so that a weekly CI is set to run all notebooks.
Can the file be added to https://gin.g-node.org/nipreps-data/tests-nifreeze, please ? |
Issue #60. |
Sorry, did not realize I could add it myself: https://gin.g-node.org/nipreps-data/tests-nifreeze/pulls/2 |
Add an additional environment to
tox
to run notebooks.Add a new table to
pyproject.toml
to host thejupyter
,nbclient
andnbmake
dependencies so that the notebooks can be run.Install the necessary TeX packages in the test CI so that LaTeX decoration in plots can be employed.