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
77c6b669
Commit
77c6b669
authored
Jul 15, 2025
by
Sidney233
Browse files
test: Update cli.yml and huigui.yml
parent
6ba1d94b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
36 deletions
+39
-36
.github/workflows/cli.yml
.github/workflows/cli.yml
+14
-10
.github/workflows/huigui.yml
.github/workflows/huigui.yml
+25
-26
No files found.
.github/workflows/cli.yml
View file @
77c6b669
...
...
@@ -14,27 +14,31 @@ on:
jobs
:
cli-test
:
if
:
github.repository == 'opendatalab/MinerU'
runs-on
:
pdf
runs-on
:
ubuntu-latest
timeout-minutes
:
240
strategy
:
fail-fast
:
true
steps
:
-
name
:
PDF cli
uses
:
actions/checkout@v
3
uses
:
actions/checkout@v
4
with
:
ref
:
dev
fetch-depth
:
2
-
name
:
install uv
uses
:
astral-sh/setup-uv@v5
-
name
:
install&test
run
:
|
source activate mineru
conda env list
pip show coverag
e
cd $GITHUB_WORKSPACE && sh tests/retry_env.sh
#
cd $GITHUB_WORKSPACE && python tests/clean_coverage.py
#
cd $GITHUB_WORKSPACE && coverage run
-m pytest tests/unittest/ --cov=magic_pdf/ --cov-report html --cov-report term-missing
#
cd $GITHUB_WORKSPACE && python tests/get_coverage.py
cd $GITHUB_WORKSPACE && pytest -m P0 -s -v tests/test_cli/test_cli_sdk.py
uv --version
uv venv --python 3.12
source .venv/bin/activat
e
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')}}
...
...
.github/workflows/huigui.yml
View file @
77c6b669
...
...
@@ -12,7 +12,7 @@ on:
-
"
**.md"
jobs
:
cli-test
:
#
if: github.repository == 'opendatalab/MinerU'
if
:
github.repository == 'opendatalab/MinerU'
runs-on
:
ubuntu-latest
timeout-minutes
:
240
strategy
:
...
...
@@ -37,29 +37,28 @@ jobs:
cd $GITHUB_WORKSPACE && python tests/clean_coverage.py
cd $GITHUB_WORKSPACE && coverage run
cd $GITHUB_WORKSPACE && python tests/get_coverage.py
cd $GITHUB_WORKSPACE && pytest -s -v tests/test_cli/test_cli_sdk.py
#
notify_to_feishu:
#
if: ${{ always() && !cancelled() && contains(needs.*.result, 'failure')}}
#
needs: cli-test
#
runs-on: pdf
#
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
#
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}'"},{"tag":"at","user_id":"'$USER_ID'"}]]}}}}' $WEBHOOK_URL
notify_to_feishu
:
if
:
${{ always() && !cancelled() && contains(needs.*.result, 'failure')}}
needs
:
cli-test
runs-on
:
pdf
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
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}'"},{"tag":"at","user_id":"'$USER_ID'"}]]}}}}' $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