This is an automated email from the ASF dual-hosted git repository.

rawkintrevo 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 effd534ec Update CI workflows for Python and Jupyter Notebooks (#597)
effd534ec is described below

commit effd534ec5eeed9f4b586c990d81696c372c796c
Author: Guan-Ming (Wesley) Chiu <[email protected]>
AuthorDate: Thu Nov 6 00:07:45 2025 +0800

    Update CI workflows for Python and Jupyter Notebooks (#597)
---
 .github/workflows/lint.yml             |  8 ++++----
 .github/workflows/notebook-testing.yml | 20 ++++++++++++++------
 .github/workflows/python-testing.yml   | 12 ++++++++++--
 3 files changed, 28 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index b14d14333..a495fed7c 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -16,14 +16,14 @@
 name: Lint
 
 on:
-  pull_request:
-    paths:
-      - "**/*.py"
   push:
     branches:
       - main
     paths:
-      - "**/*.py"
+      - "**.py"
+  pull_request:
+    paths:
+      - "**.py"
 
 jobs:
   lint:
diff --git a/.github/workflows/notebook-testing.yml 
b/.github/workflows/notebook-testing.yml
index 6cec91bab..7e8a39653 100644
--- a/.github/workflows/notebook-testing.yml
+++ b/.github/workflows/notebook-testing.yml
@@ -2,11 +2,19 @@ name: CI for Jupyter Notebooks
 
 on:
   push:
-    branches:
-      - main
+    branches: [main]
+    paths:
+      - "**.py"
+      - "**.ipynb"
+      - "pyproject.toml"
+      - ".github/workflows/notebook-testing.yml"
   pull_request:
-    branches:
-      - main
+    branches: [main]
+    paths:
+      - "**.py"
+      - "**.ipynb"
+      - "pyproject.toml"
+      - ".github/workflows/notebook-testing.yml"
 
 jobs:
   test-notebooks:
@@ -14,10 +22,10 @@ jobs:
 
     steps:
       - name: Checkout repository
-        uses: actions/checkout@v2
+        uses: actions/checkout@v5
 
       - name: Set up Python
-        uses: actions/setup-python@v5
+        uses: actions/setup-python@v6
         with:
           python-version: "3.10"
 
diff --git a/.github/workflows/python-testing.yml 
b/.github/workflows/python-testing.yml
index f6f07d8af..751cf4db1 100644
--- a/.github/workflows/python-testing.yml
+++ b/.github/workflows/python-testing.yml
@@ -19,8 +19,16 @@ name: Python Testing
 on:
   push:
     branches: [main]
+    paths:
+      - "**.py"
+      - "pyproject.toml"
+      - ".github/workflows/python-testing.yml"
   pull_request:
     branches: [main]
+    paths:
+      - "**.py"
+      - "pyproject.toml"
+      - ".github/workflows/python-testing.yml"
 
 jobs:
   test:
@@ -30,10 +38,10 @@ jobs:
         python-version: ["3.10"]
 
     steps:
-      - uses: actions/checkout@v4
+      - uses: actions/checkout@v5
 
       - name: Set up Python ${{ matrix.python-version }}
-        uses: actions/setup-python@v4
+        uses: actions/setup-python@v6
         with:
           python-version: ${{ matrix.python-version }}
 

Reply via email to