From eca6027f9a918dbadbc619a0c05697c68e1ad6ab Mon Sep 17 00:00:00 2001 From: quyuan Date: Sat, 13 Jul 2024 14:38:42 +0800 Subject: [PATCH] add ci --- .github/workflows/benchmark.yml | 10 +++------- tests/test_cli/test_cli.py | 1 - tools/magic-pdf.json | 3 --- 3 files changed, 3 insertions(+), 11 deletions(-) delete mode 100644 tools/magic-pdf.json diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 465008e3..8085915b 100644 --- a/.github/workflows/benchmark.yml +++ b/.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 diff --git a/tests/test_cli/test_cli.py b/tests/test_cli/test_cli.py index f2e3d836..f360a496 100644 --- a/tests/test_cli/test_cli.py +++ b/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, 默认方式解析 diff --git a/tools/magic-pdf.json b/tools/magic-pdf.json deleted file mode 100644 index 80d937b3..00000000 --- a/tools/magic-pdf.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "temp-output-dir": "/tmp/" -}