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

xuanwo pushed a commit to branch planner
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit ed7d72bae55b61dd68717260a278d87333c4c91e
Author: Xuanwo <[email protected]>
AuthorDate: Wed Oct 18 15:32:33 2023 +0800

    refactor
    
    Signed-off-by: Xuanwo <[email protected]>
---
 .github/scripts/{ => behavior_test}/__init__.py                        | 1 -
 .github/scripts/{behavior_test_plan.py => behavior_test/plan.py}       | 0
 .../scripts/{test_behavior_test_plan.py => behavior_test/test_plan.py} | 3 +--
 .github/workflows/behavior_test.yml                                    | 2 +-
 4 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/.github/scripts/__init__.py 
b/.github/scripts/behavior_test/__init__.py
similarity index 97%
rename from .github/scripts/__init__.py
rename to .github/scripts/behavior_test/__init__.py
index dae607cde..13a83393a 100644
--- a/.github/scripts/__init__.py
+++ b/.github/scripts/behavior_test/__init__.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file
 # distributed with this work for additional information
diff --git a/.github/scripts/behavior_test_plan.py 
b/.github/scripts/behavior_test/plan.py
similarity index 100%
rename from .github/scripts/behavior_test_plan.py
rename to .github/scripts/behavior_test/plan.py
diff --git a/.github/scripts/test_behavior_test_plan.py 
b/.github/scripts/behavior_test/test_plan.py
similarity index 96%
rename from .github/scripts/test_behavior_test_plan.py
rename to .github/scripts/behavior_test/test_plan.py
index 5f2a662b0..d023095ff 100644
--- a/.github/scripts/test_behavior_test_plan.py
+++ b/.github/scripts/behavior_test/test_plan.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python3
 # Licensed to the Apache Software Foundation (ASF) under one
 # or more contributor license agreements.  See the NOTICE file
 # distributed with this work for additional information
@@ -17,7 +16,7 @@
 # under the License.
 
 import unittest
-from behavior_test_plan import plan
+from plan import plan
 
 
 class BehaviorTestPlan(unittest.TestCase):
diff --git a/.github/workflows/behavior_test.yml 
b/.github/workflows/behavior_test.yml
index 04a60b022..3997f8b0c 100644
--- a/.github/workflows/behavior_test.yml
+++ b/.github/workflows/behavior_test.yml
@@ -73,7 +73,7 @@ jobs:
           export GITHUB_IS_PUSH=$is_push
 
           # Run the workflow planner script
-          PLAN=$(./.github/scripts/behavior_test_plan.py $files_changed)
+          PLAN=$(./.github/scripts/behavior_test/plan.py $files_changed)
           echo "Plan:"
           echo "$PLAN" | jq .
           echo "plan=$PLAN" >> $GITHUB_OUTPUT

Reply via email to