Skip to content

Commit

Permalink
ci: fix unit testing error
Browse files Browse the repository at this point in the history
  • Loading branch information
SWHL committed Sep 12, 2024
1 parent 4d03958 commit ad4a3ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/lineless_table_rec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- name: Pull latest code
uses: actions/checkout@v3

- 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 @@ -33,7 +33,7 @@ jobs:
unzip lineless_table_rec_models.zip
mv lineless_table_rec_models/*.onnx lineless_table_rec/models/
pytest tests/test_lore.py
pytest tests/test_lineless_table_rec.py
GenerateWHL_PushPyPi:
needs: UnitTesting
Expand Down
13 changes: 3 additions & 10 deletions .github/workflows/wired_table_rec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
- name: Pull latest code
uses: actions/checkout@v3

- 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 @@ -33,7 +33,7 @@ jobs:
unzip wired_table_rec_models.zip
mv wired_table_rec_models/*.onnx wired_table_rec/models/
pytest tests/test_wired.py
pytest tests/test_wired_table_rec.py
GenerateWHL_PushPyPi:
needs: UnitTesting
Expand All @@ -60,13 +60,6 @@ jobs:
python setup_wired.py bdist_wheel "${{ github.event.head_commit.message }}"
# - name: Publish distribution 📦 to Test PyPI
# uses: pypa/gh-action-pypi-publish@v1.5.0
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository_url: https://test.pypi.org/legacy/
# packages_dir: dist/

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@v1.5.0
with:
Expand Down
1 change: 1 addition & 0 deletions lineless_table_rec/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def handle_overlap_row_col(self, res):

# 创建一个二维数组来存储 sorted_logi_points 中的元素
grid = [[None] * max_col for _ in range(max_row)]

# 将 sorted_logi_points 中的元素填充到 grid 中
deleted_idx = set()
for i, dict_res in enumerate(res):
Expand Down

0 comments on commit ad4a3ed

Please sign in to comment.