@@ -39,33 +39,33 @@ jobs:
39
39
40
40
pytest tests/test_wired_table_rec.py
41
41
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