Skip to content

Commit

Permalink
Ensure torch install on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jonchang committed Dec 9, 2024
1 parent b506593 commit 47c51af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ocr-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
python -m pip install --upgrade pip
pip install poetry
pip install pytest pytest-benchmark
poetry install --with dev
poetry install --with dev --with torch
- name: Run tests
run: |
cd OCR/tests
Expand All @@ -43,4 +43,4 @@ jobs:
# cp ./dev/bench/index-template.html ./dev/bench/index.html
# git add .
# git commit -m "template to index"
# git push origin gh-pages
# git push origin gh-pages
2 changes: 1 addition & 1 deletion .github/workflows/ocr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
sudo apt install tesseract-ocr-eng tesseract-ocr -y
python -m pip install --upgrade pip
pip install poetry
poetry install --with dev
poetry install --with dev --with torch
- name: Run tests
run: poetry run pytest tests/ocr_test.py tests/segmentation_template_test.py tests/alignment_test.py

0 comments on commit 47c51af

Please sign in to comment.