Skip to content
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

Update check-jupyter.yml #89

Merged
merged 15 commits into from
May 9, 2024
15 changes: 14 additions & 1 deletion .github/workflows/check-jupyter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,26 @@ jobs:
with:
python-version: 3.8

- name: Install dependencies
- name: Check - Install dependencies
run: |
echo -e "\n\n ---------------- Doing install of pip BELOW ---- \n"
python -m pip install --upgrade pip
echo -e "\n\n ------- Doing pip install of jupyter BELOW ----\n"
pip install jupyter nbformat nbconvert
echo -e "\n\n ------- Doing install of R BELOW ----- \n"
sudo apt install r-base r-base-dev -y
echo -e "\n\n -------- Starting R BELOW ----- \n"
sudo R --vanilla << EOF
install.packages('IRkernel',repos='https://cloud.r-project.org/')
IRkernel::installspec()
EOF

echo -e "\n\n ------- Listing the kernels installed BELOW ----\n"
jupyter kernelspec list

- name: Execute Notebooks
run: |
echo -e "\n\n\n\n -------- Finding and checking the Jupyter notebooks BELOW ----- \n\n"
find tutorials/notebooks/* -name '*.ipynb' -exec jupyter nbconvert --to notebook --execute {} +

- name: Check for errors
Expand Down
Loading