Skip to content

Commit

Permalink
ci: update python version
Browse files Browse the repository at this point in the history
  • Loading branch information
SWHL committed Jan 17, 2025
1 parent 94576e5 commit 67ae463
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 39 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/gen_whl_to_pypi_rapidocr_ort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
- name: Pull latest code
uses: actions/checkout@v4

- name: Set up Python 3.7
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.10'
architecture: 'x64'

- name: Display Python version
Expand Down Expand Up @@ -52,21 +52,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.7
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.10'
architecture: 'x64'

- name: Set SSH Environment
env:
DEPLOY_KEYS: ${{ secrets.GEN_PYTHON_SDK }}
run: |
mkdir -p ~/.ssh/
echo "$DEPLOY_KEYS" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
- name: Download models
run: |
cd python
Expand Down
17 changes: 4 additions & 13 deletions .github/workflows/gen_whl_to_pypi_rapidocr_paddle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ jobs:
- name: Pull latest code
uses: actions/checkout@v4

- name: Set up Python 3.7
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.10'
architecture: 'x64'

- name: Display Python version
Expand All @@ -51,21 +51,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.7
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.10'
architecture: 'x64'

- name: Set SSH Environment
env:
DEPLOY_KEYS: ${{ secrets.GEN_PYTHON_SDK }}
run: |
mkdir -p ~/.ssh/
echo "$DEPLOY_KEYS" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
- name: Download models
run: |
cd python
Expand Down
17 changes: 4 additions & 13 deletions .github/workflows/gen_whl_to_pypi_rapidocr_vino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
- name: Pull latest code
uses: actions/checkout@v4

- name: Set up Python 3.7
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.10'
architecture: 'x64'

- name: Display Python version
Expand All @@ -50,21 +50,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Set up Python 3.7
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.10'
architecture: 'x64'

- name: Set SSH Environment
env:
DEPLOY_KEYS: ${{ secrets.GEN_PYTHON_SDK }}
run: |
mkdir -p ~/.ssh/
echo "$DEPLOY_KEYS" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
- name: Download models
run: |
cd python
Expand Down

0 comments on commit 67ae463

Please sign in to comment.