Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit ad02c22
Author: vladd-bit <[email protected]>
Date:   Thu Jul 27 06:43:43 2023 +0100

    Git test action update XI.

commit b853e33
Author: vladd-bit <[email protected]>
Date:   Thu Jul 27 06:35:19 2023 +0100

    Git test action update X (removed root).

commit bcbcb9c
Author: vladd-bit <[email protected]>
Date:   Thu Jul 27 06:29:44 2023 +0100

    Git test action update IX.

commit 45124a0
Author: vladd-bit <[email protected]>
Date:   Thu Jul 27 06:25:39 2023 +0100

    Git test action update VIII.

commit fba0216
Author: vladd-bit <[email protected]>
Date:   Wed Jul 26 22:46:55 2023 +0100

    Git test action update VII.

commit b762058
Author: vladd-bit <[email protected]>
Date:   Wed Jul 26 22:42:42 2023 +0100

    Git test action update VI.

commit ba4b7ed
Author: vladd-bit <[email protected]>
Date:   Wed Jul 26 22:38:45 2023 +0100

    Git test action update V.

commit 54d7e53
Author: vladd-bit <[email protected]>
Date:   Wed Jul 26 22:35:50 2023 +0100

    Git test action update IV.

commit 5096508
Author: vladd-bit <[email protected]>
Date:   Wed Jul 26 22:24:23 2023 +0100

    Git test action update III.

commit 15c6f73
Author: vladd-bit <[email protected]>
Date:   Wed Jul 26 22:15:20 2023 +0100

    Git test action update II.

commit 4b0c38f
Author: vladd-bit <[email protected]>
Date:   Wed Jul 26 22:10:57 2023 +0100

    Git test action update.
  • Loading branch information
vladd-bit committed Jul 27, 2023
1 parent a35fdb7 commit 9c7af37
Showing 1 changed file with 34 additions and 7 deletions.
41 changes: 34 additions & 7 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,45 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get upgrade -y
export DEBIAN_FRONTEND=noninteractive
export DEBIAN_PRIORITY=critical
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y python3-dev python3-pip python3.11 python3.11-dev python3.11-venv python3.11-doc
sudo apt-get install -y --fix-missing imagemagick libcairo2-dev tesseract-ocr tesseract-ocr-eng tesseract-ocr-osd tesseract-ocr-lat tesseract-ocr-fra tesseract-ocr-deu libtesseract-dev libleptonica-dev liblept5
sudo echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections
sudo apt-get install -y --no-install-recommends fontconfig ttf-mscorefonts-installer
sudo fc-cache -f -v
sudo apt-get install -y libimage-exiftool-perl libtcnative-1 && \
sudo apt-get install -y ttf-mscorefonts-installer fontconfig && \
sudo apt-get install -y --fix-missing libsm6 libxext6 gstreamer1.0-libav fonts-deva fonts-dejavu fonts-gfs-didot fonts-gfs-didot-classic fonts-junicode fonts-ebgaramond fonts-noto-cjk fonts-takao-gothic fonts-vlgothic && \
sudo apt-get install -y --fix-missing ghostscript ghostscript-x gsfonts gsfonts-other gsfonts-x11 fonts-croscore fonts-crosextra-caladea fonts-crosextra-carlito fonts-liberation fonts-open-sans fonts-noto-core fonts-ibm-plex fonts-urw-base35 && \
sudo apt-get install -y --fix-missing imagemagick libcairo2-dev tesseract-ocr tesseract-ocr-eng tesseract-ocr-osd tesseract-ocr-lat tesseract-ocr-fra tesseract-ocr-deu libleptonica-dev liblept5 && \
sudo apt-get install -y --fix-missing libpcre3 libpcre3-dev && \
sudo apt-get install -y --fix-missing mesa-opencl-icd pocl-opencl-icd && \
sudo apt-get install -y --fix-missing libvips-tools libvips libvips-dev
sudo apt-get install -y python3-tk tcl8.6-dev tk8.6-dev libopenjp2-7-dev libharfbuzz-dev libfribidi-dev libxcb1-dev libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev
# python3 poppler requirement
sudo apt-get install poppler-utils -y
sudo apt-get install -y libreoffice libreoffice-script-provider-python
sudo apt-get install -y --no-install-recommends default-jre libreoffice-java-common libreoffice libreoffice-script-provider-python
sudo apt-get install -y isort flake8
sudo -H python3.11 -m pip install --upgrade pip --break-system-packages
sudo -H python3.11 -m pip install setuptools numpy matplotlib --break-system-packages
sudo -H python3.11 -m pip install wheel virtualenv cython uwsgi --break-system-packages
sudo -H python3.11 -m pip install opencv-python-headless --break-system-packages
python3.11 -m pip install --upgrade pip
python3.11 -m pip install unoserver
python3.11 -m pip install -r ./requirements.txt
sudo -H python3.11 -m pip install --upgrade pip
sudo -H python3.11 -m pip install setuptools
sudo -H python3.11 -m pip install unoserver
sudo -H python3.11 -m pip install --no-cache-dir -r ./requirements.txt
# - name: Check linting and types
# run: |
Expand All @@ -58,6 +85,6 @@ jobs:
# mypy . --ignore-missing-imports

- name: Run tests
run: python3 -m unittest ocr_service/tests/process.py
run: /usr/bin/python3 -m unittest ocr_service/tests/process.py


0 comments on commit 9c7af37

Please sign in to comment.