|
|
@@ -32,14 +32,14 @@ jobs:
|
|
|
|
|
|
- name: Verify version.py
|
|
|
run: |
|
|
|
- ls -l magic_pdf/libs/version.py
|
|
|
- cat magic_pdf/libs/version.py
|
|
|
+ ls -l mineru/version.py
|
|
|
+ cat mineru/version.py
|
|
|
|
|
|
- name: Commit changes
|
|
|
run: |
|
|
|
git config --local user.email "moe@myhloli.com"
|
|
|
git config --local user.name "myhloli"
|
|
|
- git add magic_pdf/libs/version.py
|
|
|
+ git add mineru/version.py
|
|
|
if git diff-index --quiet HEAD; then
|
|
|
echo "No changes to commit"
|
|
|
else
|
|
|
@@ -71,18 +71,18 @@ jobs:
|
|
|
|
|
|
- name: Verify version.py
|
|
|
run: |
|
|
|
- ls -l magic_pdf/libs/version.py
|
|
|
- cat magic_pdf/libs/version.py
|
|
|
+ ls -l mineru/version.py
|
|
|
+ cat mineru/version.py
|
|
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
uses: actions/setup-python@v5
|
|
|
with:
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
|
- - name: Install magic-pdf
|
|
|
+ - name: Install mineru
|
|
|
run: |
|
|
|
python -m pip install --upgrade pip
|
|
|
- pip install -e .[full]
|
|
|
+ pip install -e .[all]
|
|
|
|
|
|
build:
|
|
|
needs: [ check-install ]
|
|
|
@@ -103,10 +103,11 @@ jobs:
|
|
|
- name: Install wheel
|
|
|
run: |
|
|
|
python -m pip install wheel
|
|
|
+ pip install build
|
|
|
|
|
|
- name: Build wheel
|
|
|
run: |
|
|
|
- python setup.py bdist_wheel
|
|
|
+ python -m build --wheel
|
|
|
|
|
|
- name: Upload artifact
|
|
|
uses: actions/upload-artifact@v4
|