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
b77f8fdc
Unverified
Commit
b77f8fdc
authored
Jul 21, 2025
by
Xiaomeng Zhao
Committed by
GitHub
Jul 21, 2025
Browse files
Merge branch 'dev' into dev
parents
21c4b3fe
989fb149
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
71 deletions
+21
-71
.github/workflows/cli.yml
.github/workflows/cli.yml
+21
-23
.github/workflows/huigui.yml
.github/workflows/huigui.yml
+0
-48
No files found.
.github/workflows/cli.yml
View file @
b77f8fdc
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name
:
mineru
name
:
mineru
-cli-test
on
:
on
:
pu
ll_request
:
pu
sh
:
branches
:
branches
:
-
"
master"
-
"
master"
-
"
dev"
-
"
dev"
paths-ignore
:
paths-ignore
:
-
"
cmds/**"
-
"
cmds/**"
-
"
**.md"
-
"
**.md"
workflow_dispatch
:
jobs
:
jobs
:
cli-test
:
cli-test
:
if
:
github.repository == 'opendatalab/MinerU'
if
:
github.repository == 'opendatalab/MinerU'
...
@@ -20,31 +19,30 @@ jobs:
...
@@ -20,31 +19,30 @@ jobs:
fail-fast
:
true
fail-fast
:
true
steps
:
steps
:
-
name
:
PDF cli
-
name
:
PDF cli
uses
:
actions/checkout@v4
uses
:
actions/checkout@v4
with
:
with
:
ref
:
dev
ref
:
dev
fetch-depth
:
2
fetch-depth
:
2
-
name
:
install uv
-
name
:
install uv
uses
:
astral-sh/setup-uv@v5
uses
:
astral-sh/setup-uv@v5
-
name
:
install&test
run
:
|
uv --version
uv venv --python 3.12
source .venv/bin/activate
uv pip install .[test]
cd $GITHUB_WORKSPACE && python tests/clean_coverage.py
cd $GITHUB_WORKSPACE && coverage run
cd $GITHUB_WORKSPACE && python tests/get_coverage.py
-
name
:
install&test
run
:
|
uv --version
uv venv --python 3.12
source .venv/bin/activate
uv pip install .[test]
cd $GITHUB_WORKSPACE && python tests/clean_coverage.py
cd $GITHUB_WORKSPACE && coverage run
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
:
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}'"}]]}}}}' ${{ 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}'"}]]}}}}' ${{ secrets.FEISHU_WEBHOOK_URL }}
.github/workflows/huigui.yml
deleted
100644 → 0
View file @
21c4b3fe
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name
:
mineru
on
:
push
:
branches
:
-
"
master"
-
"
dev"
paths-ignore
:
-
"
cmds/**"
-
"
**.md"
jobs
:
cli-test
:
if
:
github.repository == 'opendatalab/MinerU'
runs-on
:
ubuntu-latest
timeout-minutes
:
240
strategy
:
fail-fast
:
true
steps
:
-
name
:
PDF cli
uses
:
actions/checkout@v4
with
:
ref
:
dev
fetch-depth
:
2
-
name
:
install uv
uses
:
astral-sh/setup-uv@v5
-
name
:
install&test
run
:
|
uv --version
uv venv --python 3.12
source .venv/bin/activate
uv pip install .[test]
cd $GITHUB_WORKSPACE && python tests/clean_coverage.py
cd $GITHUB_WORKSPACE && coverage run
cd $GITHUB_WORKSPACE && python tests/get_coverage.py
notify_to_feishu
:
if
:
${{ always() && !cancelled() && contains(needs.*.result, 'failure')}}
needs
:
cli-test
runs-on
:
ubuntu-latest
steps
:
-
name
:
notify
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}'"}]]}}}}' ${{ secrets.FEISHU_WEBHOOK_URL }}
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