π Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.
ci: optimize to package whl action
SWHL307407d462a6
diff --git a/.github/workflows/gen_whl_to_pypi_rapidocr.yml b/.github/workflows/gen_whl_to_pypi_rapidocr.ymlindex 27f5521..4c47bd0 100644--- a/.github/workflows/gen_whl_to_pypi_rapidocr.yml+++ b/.github/workflows/gen_whl_to_pypi_rapidocr.yml@@ -6,7 +6,7 @@ on:- v*jobs:- UnitTesting:+ TestAndPublish:runs-on: ubuntu-lateststeps:- name: Pull latest code@@ -21,34 +21,23 @@ jobs:- name: Display Python versionrun: python -c "import sys; print(sys.version)"- - name: Unit testings+ - name: Install all dependenciesrun: |cd python+ python -m pip install --upgrade pippip install -r requirements.txt- pip install pytest wheel get_pypi_latest_version openvino==2023.3.0 onnxruntime python-bidi MNN+ pip install pytest wheel setuptools get_pypi_latest_version openvino==2023.3.0 onnxruntime python-bidi MNNpip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpupython -m pip install paddlepaddle==3.1.1 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/+ - name: Unit testings+ run: |+ cd pythonpytest tests/test_*.py- GenerateWHL_PushPyPi:- needs: UnitTesting- runs-on: ubuntu-latest-- steps:- - uses: actions/checkout@v4-- - name: Set up Python 3.10- uses: actions/setup-python@v4- with:- python-version: '3.10'- architecture: 'x64'-- - name: Run setup.py+ - name: Build wheel packagerun: |cd python- pip install setuptools get_pypi_latest_version wheel- python -m pip install --upgrade pippython setup.py bdist_wheel ${{ github.ref_name }}mv dist ../@@ -56,4 +45,4 @@ jobs:uses: pypa/[email protected]with:password: ${{ secrets.RAPIDOCR }}- packages_dir: dist/+ packages_dir: dist/\ No newline at end of file