Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
c0a54f61
Unverified
Commit
c0a54f61
authored
Jul 16, 2025
by
Xiaomeng Zhao
Committed by
GitHub
Jul 16, 2025
Browse files
Merge pull request #3067 from Sidney233/dev
test: reconstruct test_e2e.py and feishubot
parents
98db6ef7
add091cc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
23 deletions
+7
-23
.github/workflows/cli.yml
.github/workflows/cli.yml
+2
-2
.github/workflows/huigui.yml
.github/workflows/huigui.yml
+3
-19
tests/unittest/test_e2e.py
tests/unittest/test_e2e.py
+2
-2
No files found.
.github/workflows/cli.yml
View file @
c0a54f61
...
@@ -43,8 +43,8 @@ jobs:
...
@@ -43,8 +43,8 @@ jobs:
notify_to_feishu
:
notify_to_feishu
:
if
:
${{ always() && !cancelled() && contains(needs.*.result, 'failure')}}
if
:
${{ always() && !cancelled() && contains(needs.*.result, 'failure')}}
needs
:
cli-test
needs
:
cli-test
runs-on
:
pdf
runs-on
:
ubuntu-latest
steps
:
steps
:
-
name
:
notify
-
name
:
notify
run
:
|
run
:
|
curl -X POST -H "Content-Type: application/json" -d '{"msg_type":"post","content":{"post":{"zh_cn":{"title":"'${{ github.repository }}' GitHubAction Failed","content":[[{"tag":"text","text":""},{"tag":"a","text":"Please click here for details ","href":"https://github.com/'${{ github.repository }}'/actions/runs/'${GITHUB_RUN_ID}'"}
,{"tag":"at","user_id":"'$USER_ID'"}]]}}}}' $
WEBHOOK_URL
curl -X POST -H "Content-Type: application/json" -d '{"msg_type":"post","content":{"post":{"zh_cn":{"title":"'${{ github.repository }}' GitHubAction Failed","content":[[{"tag":"text","text":""},{"tag":"a","text":"Please click here for details ","href":"https://github.com/'${{ github.repository }}'/actions/runs/'${GITHUB_RUN_ID}'"}
]]}}}}' ${{ secrets.FEISHU_
WEBHOOK_URL
}}
.github/workflows/huigui.yml
View file @
c0a54f61
...
@@ -12,7 +12,7 @@ on:
...
@@ -12,7 +12,7 @@ on:
-
"
**.md"
-
"
**.md"
jobs
:
jobs
:
cli-test
:
cli-test
:
#
if: github.repository == 'opendatalab/MinerU'
if
:
github.repository == 'opendatalab/MinerU'
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
timeout-minutes
:
240
timeout-minutes
:
240
strategy
:
strategy
:
...
@@ -39,26 +39,10 @@ jobs:
...
@@ -39,26 +39,10 @@ jobs:
cd $GITHUB_WORKSPACE && python tests/get_coverage.py
cd $GITHUB_WORKSPACE && python tests/get_coverage.py
notify_to_feishu
:
notify_to_feishu
:
#
if: ${{ always() && !cancelled() && contains(needs.*.result, 'failure')}}
if
:
${{ always() && !cancelled() && contains(needs.*.result, 'failure')}}
needs
:
cli-test
needs
:
cli-test
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
steps
:
steps
:
-
name
:
get_actor
run
:
|
metion_list="dt-yy"
echo $GITHUB_ACTOR
if [[ $GITHUB_ACTOR == "drunkpig" ]]; then
metion_list="xuchao"
elif [[ $GITHUB_ACTOR == "myhloli" ]]; then
metion_list="zhaoxiaomeng"
elif [[ $GITHUB_ACTOR == "icecraft" ]]; then
metion_list="xurui1"
fi
echo $metion_list
echo "METIONS=$metion_list" >> "$GITHUB_ENV"
echo ${{ env.METIONS }}
-
name
:
notify
-
name
:
notify
run
:
|
run
:
|
echo ${{ secrets.USER_ID }}
curl -X POST -H "Content-Type: application/json" -d '{"msg_type":"post","content":{"post":{"zh_cn":{"title":"'${{ github.repository }}' GitHubAction Failed","content":[[{"tag":"text","text":""},{"tag":"a","text":"Please click here for details ","href":"https://github.com/'${{ github.repository }}'/actions/runs/'${GITHUB_RUN_ID}'"}]]}}}}' ${{ secrets.FEISHU_WEBHOOK_URL }}
curl -X POST -H "Content-Type: application/json" -d '{"msg_type":"post","content":{"post":{"zh_cn":{"title":"'${{ github.repository }}' GitHubAction Failed","content":[[{"tag":"text","text":""},{"tag":"a","text":"Please click here for details ","href":"https://github.com/'${{ github.repository }}'/actions/runs/'${GITHUB_RUN_ID}'"}]]}}}}' $WEBHOOK_URL
tests/unittest/test_e2e.py
View file @
c0a54f61
...
@@ -36,7 +36,7 @@ def test_pipeline_with_two_config():
...
@@ -36,7 +36,7 @@ def test_pipeline_with_two_config():
if
doc_path
.
suffix
in
pdf_suffixes
+
image_suffixes
:
if
doc_path
.
suffix
in
pdf_suffixes
+
image_suffixes
:
doc_path_list
.
append
(
doc_path
)
doc_path_list
.
append
(
doc_path
)
os
.
environ
[
"MINERU_MODEL_SOURCE"
]
=
"modelscope"
#
os.environ["MINERU_MODEL_SOURCE"] = "modelscope"
pdf_file_names
=
[]
pdf_file_names
=
[]
pdf_bytes_list
=
[]
pdf_bytes_list
=
[]
...
@@ -102,7 +102,7 @@ def test_vlm_transformers_with_default_config():
...
@@ -102,7 +102,7 @@ def test_vlm_transformers_with_default_config():
if
doc_path
.
suffix
in
pdf_suffixes
+
image_suffixes
:
if
doc_path
.
suffix
in
pdf_suffixes
+
image_suffixes
:
doc_path_list
.
append
(
doc_path
)
doc_path_list
.
append
(
doc_path
)
os
.
environ
[
"MINERU_MODEL_SOURCE"
]
=
"modelscope"
#
os.environ["MINERU_MODEL_SOURCE"] = "modelscope"
pdf_file_names
=
[]
pdf_file_names
=
[]
pdf_bytes_list
=
[]
pdf_bytes_list
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment