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
5473f32a
Unverified
Commit
5473f32a
authored
Apr 10, 2024
by
Kaiwen Liu
Committed by
GitHub
Apr 10, 2024
Browse files
Merge branch 'magicpdf:master' into master
parents
75b25f62
ce1a04f2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
7 deletions
+86
-7
.github/workflows/benchmark.yml
.github/workflows/benchmark.yml
+1
-1
.github/workflows/python-package.yml
.github/workflows/python-package.yml
+77
-0
.github/workflows/update_base.yml
.github/workflows/update_base.yml
+8
-6
No files found.
.github/workflows/benchmark.yml
View file @
5473f32a
...
@@ -9,7 +9,7 @@ on:
...
@@ -9,7 +9,7 @@ on:
paths-ignore
:
paths-ignore
:
-
"
cmds/**"
-
"
cmds/**"
-
"
**.md"
-
"
**.md"
workflow_dispatch
:
jobs
:
jobs
:
pdf-test
:
pdf-test
:
runs-on
:
pdf
runs-on
:
pdf
...
...
.github/workflows/python-package.yml
0 → 100644
View file @
5473f32a
# 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
:
Python package
on
:
push
:
tags
:
-
'
*released'
workflow_dispatch
:
jobs
:
build
:
runs-on
:
ubuntu-latest
strategy
:
fail-fast
:
false
matrix
:
python-version
:
[
"
3.10"
]
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v4
with
:
fetch-depth
:
0
-
name
:
Set up Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v5
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
-
name
:
Install wheel
run
:
|
python -m pip install wheel
-
name
:
Build wheel
run
:
|
python setup.py bdist_wheel
-
name
:
Upload artifact
uses
:
actions/upload-artifact@v4
with
:
name
:
wheel-file
path
:
dist/*.whl
retention-days
:
30
release
:
needs
:
[
build
]
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v4
-
name
:
Download artifact
uses
:
actions/download-artifact@v4
with
:
name
:
wheel-file
path
:
dist
-
name
:
Create and Upload Release
id
:
create_release
uses
:
softprops/action-gh-release@4634c16e79c963813287e889244c50009e7f0981
with
:
files
:
'
./dist/*.whl'
env
:
GITHUB_TOKEN
:
${{ secrets.RELEASE_TOKEN }}
# - name: Publish to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# user: __token__
# password: ${{ secrets.PYPI_TOKEN }}
.github/workflows/update_base.yml
View file @
5473f32a
# 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
:
PDF
name
:
update-base
on
:
on
:
release
:
push
:
types
:
[
published
]
tags
:
-
'
*released'
workflow_dispatch
:
jobs
:
jobs
:
pdf-test
:
pdf-test
:
runs-on
:
pdf
runs-on
:
pdf
...
@@ -15,6 +16,7 @@ jobs:
...
@@ -15,6 +16,7 @@ jobs:
steps
:
steps
:
-
name
:
update-base
-
name
:
update-base
uses
:
actions/checkout@v3
uses
:
actions/checkout@v3
-
name
:
start-update
run
:
|
run
:
|
python update_base.py
echo "start test"
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