Skip to content

Commit b90689f

Browse files
committed
ci: Enable wired package auto packaging program
1 parent 230625b commit b90689f

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

.github/workflows/wired_table_rec.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -39,33 +39,33 @@ jobs:
3939
4040
pytest tests/test_wired_table_rec.py
4141
42-
# GenerateWHL_PushPyPi:
43-
# needs: UnitTesting
44-
# runs-on: ubuntu-latest
45-
#
46-
# steps:
47-
# - uses: actions/checkout@v3
48-
#
49-
# - name: Set up Python 3.7
50-
# uses: actions/setup-python@v4
51-
# with:
52-
# python-version: '3.7'
53-
# architecture: 'x64'
54-
#
55-
# - name: Run setup.py
56-
# run: |
57-
# pip install -r requirements.txt
58-
# python -m pip install --upgrade pip
59-
# pip install wheel get_pypi_latest_version
60-
#
61-
# wget https://github.com/RapidAI/TableStructureRec/releases/download/v0.0.0/wired_table_rec_models.zip
62-
# unzip wired_table_rec_models.zip
63-
# mv wired_table_rec_models/*.onnx wired_table_rec/models/
64-
#
65-
# python setup_wired.py bdist_wheel "${{ github.event.head_commit.message }}"
66-
#
67-
# - name: Publish distribution 📦 to PyPI
68-
# uses: pypa/gh-action-pypi-publish@v1.5.0
69-
# with:
70-
# password: ${{ secrets.PYPI_API_TOKEN }}
71-
# packages_dir: dist/
42+
GenerateWHL_PushPyPi:
43+
needs: UnitTesting
44+
runs-on: ubuntu-latest
45+
46+
steps:
47+
- uses: actions/checkout@v3
48+
49+
- name: Set up Python 3.10
50+
uses: actions/setup-python@v4
51+
with:
52+
python-version: '3.10'
53+
architecture: 'x64'
54+
55+
- name: Run setup.py
56+
run: |
57+
pip install -r requirements.txt
58+
python -m pip install --upgrade pip
59+
pip install wheel get_pypi_latest_version
60+
61+
wget https://github.com/RapidAI/TableStructureRec/releases/download/v0.0.0/wired_table_rec_models.zip
62+
unzip wired_table_rec_models.zip
63+
mv wired_table_rec_models/*.onnx wired_table_rec/models/
64+
65+
python setup_wired.py bdist_wheel "${{ github.event.head_commit.message }}"
66+
67+
- name: Publish distribution 📦 to PyPI
68+
uses: pypa/gh-action-pypi-publish@v1.5.0
69+
with:
70+
password: ${{ secrets.PYPI_API_TOKEN }}
71+
packages_dir: dist/

0 commit comments

Comments
 (0)