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
89c7bd04
Unverified
Commit
89c7bd04
authored
Nov 27, 2024
by
Xiaomeng Zhao
Committed by
GitHub
Nov 27, 2024
Browse files
Merge pull request #1121 from opendatalab/master
master -> dev
parents
7fdbb6e5
52ef1bc7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
53 deletions
+2
-53
.github/ISSUE_TEMPLATE/bug_report.yml
.github/ISSUE_TEMPLATE/bug_report.yml
+1
-0
.github/workflows/daily.yml
.github/workflows/daily.yml
+0
-52
magic_pdf/libs/version.py
magic_pdf/libs/version.py
+1
-1
No files found.
.github/ISSUE_TEMPLATE/bug_report.yml
View file @
89c7bd04
...
@@ -81,6 +81,7 @@ body:
...
@@ -81,6 +81,7 @@ body:
-
"
0.7.x"
-
"
0.7.x"
-
"
0.8.x"
-
"
0.8.x"
-
"
0.9.x"
-
"
0.9.x"
-
"
0.10.x"
validations
:
validations
:
required
:
true
required
:
true
...
...
.github/workflows/daily.yml
View file @
89c7bd04
# 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
jobs
:
cli-test
:
runs-on
:
pdf
timeout-minutes
:
240
strategy
:
fail-fast
:
true
steps
:
-
name
:
PDF cli
uses
:
actions/checkout@v3
with
:
fetch-depth
:
2
-
name
:
install&test
run
:
|
source activate mineru
conda env list
pip show coverage
git checkout "dev"
# 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 -s -v tests/test_cli/test_cli_sdk.py
notify_to_feishu
:
if
:
${{ always() && !cancelled() && contains(needs.*.result, 'failure') && (github.ref_name == 'master') }}
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":"'${{ secrets.USER_ID }}'"}]]}}}}' ${{ secrets.WEBHOOK_URL }}
magic_pdf/libs/version.py
View file @
89c7bd04
__version__
=
"0.10.
1
"
__version__
=
"0.10.
2
"
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