mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-27 04:24:45 +00:00
fix(CI/CD): Use the eng language package location to set the TESSDATA_PREFIX envvar
Signed-off-by: Nikos Livathinos <nli@zurich.ibm.com>
This commit is contained in:
parent
be6489bde0
commit
8ec8c38de8
7
.github/workflows/checks.yml
vendored
7
.github/workflows/checks.yml
vendored
@ -3,8 +3,6 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-checks:
|
run-checks:
|
||||||
env:
|
|
||||||
TESSDATA_PREFIX: /usr/share/tesseract-ocr/5/tessdata
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -13,6 +11,9 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install tesseract
|
- name: Install tesseract
|
||||||
run: sudo apt-get install -y tesseract-ocr tesseract-ocr-eng tesseract-ocr-fra tesseract-ocr-deu tesseract-ocr-spa libleptonica-dev libtesseract-dev pkg-config
|
run: sudo apt-get install -y tesseract-ocr tesseract-ocr-eng tesseract-ocr-fra tesseract-ocr-deu tesseract-ocr-spa libleptonica-dev libtesseract-dev pkg-config
|
||||||
|
- name: Set TESSDATA_PREFIX
|
||||||
|
run: |
|
||||||
|
echo "TESSDATA_PREFIX=$(dpkg -L tesseract-ocr-eng | grep tessdata$)" >> "$GITHUB_ENV"
|
||||||
- uses: ./.github/actions/setup-poetry
|
- uses: ./.github/actions/setup-poetry
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
@ -36,4 +37,4 @@ jobs:
|
|||||||
poetry run python "$file" || exit 1
|
poetry run python "$file" || exit 1
|
||||||
done
|
done
|
||||||
- name: Build with poetry
|
- name: Build with poetry
|
||||||
run: poetry build
|
run: poetry build
|
||||||
|
Loading…
Reference in New Issue
Block a user