Skip to content

πŸ“„ Awesome OCR multiple programing languages toolkits based on ONNX Runtime, OpenVINO, MNN, PaddlePaddle, TensorRT and PyTorch.

test CI

SWHL5dd359c884fc
diff --git a/.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml b/.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml
index 61ec2ac..59476c3 100644
--- a/.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml
+++ b/.github/workflows/gen_whl_to_pypi_rapidocr_ort.yml
@@ -11,6 +11,8 @@ on:
env:
RESOURCES_URL: https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/required_for_whl_v1.1.0.zip
+ ZIP_NAME: ${RESOURCES_URL##*/} # required_for_whl_v1.1.0.zip
+ DIR_NAME: ${ZIP_NAME%.*} # required_for_whl_v1.1.0
jobs:
UnitTesting:
@@ -30,11 +32,10 @@ jobs:
- name: Unit testings
run: |
- wget https://github.com/RapidAI/RapidOCR/releases/download/v1.1.0/required_for_whl_v1.1.0.zip
- unzip required_for_whl_v1.1.0.zip
- ls
- cp required_for_whl_v1.1.0/resources/models/*.onnx python/rapidocr_onnxruntime/models/
- cp required_for_whl_v1.1.0/resources/models/*.onnx python/rapidocr_openvino/models/
+ wget ${RESOURCES_URL}
+ unzip ${DIR_NAME}
+ cp ${DIR_NAME}/resources/models/*.onnx python/rapidocr_onnxruntime/models/
+ cp ${DIR_NAME}/resources/models/*.onnx python/rapidocr_openvino/models/
cd python
pip install -r requirements.txt
cd tests
@@ -58,6 +59,7 @@ jobs:
- name: Download models
run: |
+ ls rapidocr_onnxruntime/models
cd python
wget $RESOURCES_URL
unzip required_for_whl_v1.1.0.zip
@@ -84,8 +86,8 @@ jobs:
# repository_url: https://test.pypi.org/legacy/
# packages_dir: dist/
- - name: Publish distribution πŸ“¦ to PyPI
- uses: pypa/[email protected]
- with:
- password: ${{ secrets.PYPI_API_TOKEN }}
- packages_dir: dist/
+ # - name: Publish distribution πŸ“¦ to PyPI
+ # uses: pypa/[email protected]
+ # with:
+ # password: ${{ secrets.PYPI_API_TOKEN }}
+ # packages_dir: dist/