Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions .github/workflows/mr_ci_text_spotting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
all_tests:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]
fail-fast: false
env:
# point datasets to ~/.torch so it's cached by CI
Expand All @@ -29,6 +29,16 @@ jobs:
with:
fetch-depth: 2

- name: Free disk space (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /usr/local/lib/android
sudo rm -rf /opt/ghc
sudo rm -rf /opt/hostedtoolcache/CodeQL
sudo apt-get clean
df -h

- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
Expand All @@ -46,14 +56,14 @@ jobs:

- name: Install dependencies
run: |
python -m pip install wheel
python -m pip install numpy==1.26.4 torch==2.2.2 torchvision==0.17.2 -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install ".[dev]"
python -m pip install pytest-cov
python -m pip install --no-build-isolation 'git+https://github.com/facebookresearch/detectron2.git'
python -m pip install --no-build-isolation 'git+https://github.com/maps-as-data/DeepSolo.git'
python -m pip install --no-build-isolation 'git+https://github.com/maps-as-data/DPText-DETR.git'
python -m pip install --no-build-isolation 'git+https://github.com/maps-as-data/MapTextPipeline.git'
python -m pip install --no-cache-dir wheel
python -m pip install --no-cache-dir numpy==1.26.4 torch==2.2.2 torchvision==0.17.2 -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install --no-cache-dir ".[dev]"
python -m pip install --no-cache-dir pytest-cov
python -m pip install --no-cache-dir --no-build-isolation 'git+https://github.com/facebookresearch/detectron2.git'
python -m pip install --no-cache-dir --no-build-isolation 'git+https://github.com/maps-as-data/DeepSolo.git'
python -m pip install --no-cache-dir --no-build-isolation 'git+https://github.com/maps-as-data/DPText-DETR.git'
python -m pip install --no-cache-dir --no-build-isolation 'git+https://github.com/maps-as-data/MapTextPipeline.git'

- name: Clone DPText-DETR
run: |
Expand Down
6 changes: 4 additions & 2 deletions tests/test_text_spotting/test_deepsolo_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ def test_deepsolo_init_tsv(init_dataframes, tmp_path):

def test_deepsolo_init_geojson(init_dataframes, tmp_path, mock_response):
parent_df, patch_df = init_dataframes
parent_df.to_file(f"{tmp_path}/parent_df.geojson", driver="GeoJSON")
patch_df.to_file(f"{tmp_path}/patch_df.geojson", driver="GeoJSON")
parent_df.to_file(
f"{tmp_path}/parent_df.geojson", driver="GeoJSON", engine="pyogrio"
)
patch_df.to_file(f"{tmp_path}/patch_df.geojson", driver="GeoJSON", engine="pyogrio")
runner = DeepSoloRunner(
f"{tmp_path}/patch_df.geojson",
parent_df=f"{tmp_path}/parent_df.geojson",
Expand Down
6 changes: 4 additions & 2 deletions tests/test_text_spotting/test_dptext_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ def test_dptext_init_tsv(init_dataframes, tmp_path):

def test_dptext_init_geojson(init_dataframes, tmp_path, mock_response):
parent_df, patch_df = init_dataframes
parent_df.to_file(f"{tmp_path}/parent_df.geojson", driver="GeoJSON")
patch_df.to_file(f"{tmp_path}/patch_df.geojson", driver="GeoJSON")
parent_df.to_file(
f"{tmp_path}/parent_df.geojson", driver="GeoJSON", engine="pyogrio"
)
patch_df.to_file(f"{tmp_path}/patch_df.geojson", driver="GeoJSON", engine="pyogrio")
runner = DPTextDETRRunner(
f"{tmp_path}/patch_df.geojson",
parent_df=f"{tmp_path}/parent_df.geojson",
Expand Down
6 changes: 4 additions & 2 deletions tests/test_text_spotting/test_maptext_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ def test_maptext_init_tsv(init_dataframes, tmp_path):

def test_maptext_init_geojson(init_dataframes, tmp_path, mock_response):
parent_df, patch_df = init_dataframes
parent_df.to_file(f"{tmp_path}/parent_df.geojson", driver="GeoJSON")
patch_df.to_file(f"{tmp_path}/patch_df.geojson", driver="GeoJSON")
parent_df.to_file(
f"{tmp_path}/parent_df.geojson", driver="GeoJSON", engine="pyogrio"
)
patch_df.to_file(f"{tmp_path}/patch_df.geojson", driver="GeoJSON", engine="pyogrio")
runner = MapTextRunner(
f"{tmp_path}/patch_df.geojson",
parent_df=f"{tmp_path}/parent_df.geojson",
Expand Down