quyuan 1 年之前
父節點
當前提交
eca6027f9a
共有 3 個文件被更改,包括 3 次插入11 次删除
  1. 3 7
      .github/workflows/benchmark.yml
  2. 0 1
      tests/test_cli/test_cli.py
  3. 0 3
      tools/magic-pdf.json

+ 3 - 7
.github/workflows/benchmark.yml

@@ -30,14 +30,10 @@ jobs:
         fetch-depth: 2
     - name: check-requirements
       run: |
-        changed_files=$(git diff --name-only -r HEAD~1 HEAD)
-        echo $changed_files
-        if [[ $changed_files =~ "requirements.txt" ]] || [[ $changed_files =~ "requirements-qa.txt" ]]; then
-          pip install -r requirements.txt
-          pip install -r requirements-qa.txt
-        fi
+        pip install -r requirements.txt
+        pip install -r requirements-qa.txt
     - name: get-benchmark-result
       run: |
         echo "start test"
-        cd tools && python benchmark.py
+        cd tests && python benchmark.py
   

+ 0 - 1
tests/test_cli/test_cli.py

@@ -18,7 +18,6 @@ class TestCli:
         common.check_shell(cmd)
         #common.count_folders_and_check_contents(pdf_res_path)      
    
-
     # def test_pdf_specify_jsonl(self):
     #     """
     #     输入jsonl, 默认方式解析

+ 0 - 3
tools/magic-pdf.json

@@ -1,3 +0,0 @@
-{       
-    "temp-output-dir": "/tmp/"
-}