Skip to content

Commit

Permalink
update text spotting into coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
rwood-97 committed Oct 23, 2024
1 parent abf2453 commit df66889
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mr_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Test with pytest
run: |
python -m pytest --cov=./ --cov-report=xml ./tests
python -m pytest ./tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/mr_ci_text_spotting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
python-version: [3.9, 3.11]
fail-fast: false
env:
# point datasets to ~/.torch so it's cached by CI
Expand All @@ -21,10 +20,10 @@ jobs:
with:
fetch-depth: 2

- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
python-version: 3.11

- name: Update pip
run: |
Expand Down Expand Up @@ -65,6 +64,17 @@ jobs:
huggingface-cli download rwood-97/DeepSolo_ic15_res50 ic15_res50_finetune_synth-tt-mlt-13-15-textocr.pth --local-dir .
huggingface-cli download rwood-97/MapTextPipeline_rumsey rumsey-finetune.pth --local-dir .
- name: Run unittests
- name: Test with pytest
run: |
python -m pytest test_text_spotting
python -m pytest --cov=./ --cov-report=xml ./tests
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./coverage/reports/
env_vars: OS,PYTHON
fail_ci_if_error: false
files: ./coverage.xml,!./cache
flags: unittests
name: codecov-umbrella
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

@pytest.fixture
def sample_dir():
return pathlib.Path(__file__).resolve().parent.parent / "tests" / "sample_files"
return pathlib.Path(__file__).resolve().parent.parent / "sample_files"


@pytest.fixture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

@pytest.fixture
def sample_dir():
return pathlib.Path(__file__).resolve().parent.parent / "tests" / "sample_files"
return pathlib.Path(__file__).resolve().parent.parent / "sample_files"


@pytest.fixture
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

@pytest.fixture
def sample_dir():
return pathlib.Path(__file__).resolve().parent.parent / "tests" / "sample_files"
return pathlib.Path(__file__).resolve().parent.parent / "sample_files"


@pytest.fixture
Expand Down

0 comments on commit df66889

Please sign in to comment.