This is an automated email from the ASF dual-hosted git repository.
hcr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/mahout.git
The following commit(s) were added to refs/heads/main by this push:
new 6f16792d7 [CI] Update Jupyter Notebook testing without testing
benchmark notebo… (#838)
6f16792d7 is described below
commit 6f16792d7fc87e2361ae447e9de32d44d03b064d
Author: Ryan Huang <[email protected]>
AuthorDate: Fri Jan 16 14:37:30 2026 +0800
[CI] Update Jupyter Notebook testing without testing benchmark notebo…
(#838)
* [CI] Update Jupyter Notebook testing without testing benchmark notebook
and make workflow to use Python 3.11 and optimize dependency installation
* [CI] Update Jupyter Notebook testing to use virtual environment for
dependency installation and execution
* [CI] Update Jupyter Notebook execution command to use 'jupyter execute'
for improved compatibility
* Update setup-uv action to version 7
---
.github/workflows/notebook-testing.yml | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/.github/workflows/notebook-testing.yml
b/.github/workflows/notebook-testing.yml
index 6fd083d1a..04d7ecdd4 100644
--- a/.github/workflows/notebook-testing.yml
+++ b/.github/workflows/notebook-testing.yml
@@ -23,22 +23,22 @@ jobs:
steps:
- name: Checkout repository
- uses: actions/checkout@v5
+ uses: actions/checkout@v6
- - name: Set up Python
- uses: actions/setup-python@v6
+ - name: Set up Python with uv
+ uses: astral-sh/setup-uv@v7
with:
- python-version: "3.10"
+ python-version: "3.11"
+ enable-cache: true
- name: Install dependencies
run: |
- python -m pip install --upgrade pip
- pip install nbconvert nbclient ipykernel
- pip install -e .
+ uv venv
+ uv pip install nbclient ipykernel -e .
- name: Run Jupyter Notebooks
run: |
- for notebook in $(find . -name '*.ipynb'); do
- echo "Executing $notebook"
- jupyter nbconvert --to notebook --execute --inplace $notebook
+ for nb in examples/*.ipynb; do
+ echo "Executing $nb"
+ uv run jupyter execute "$nb" --inplace
done