From c385cc078ba54bb87fbbc6d58c7ef6befab2db2c Mon Sep 17 00:00:00 2001 From: Klaus Fl Date: Fri, 17 May 2024 18:32:56 +0200 Subject: [PATCH] Add tesseract for pdf processing --- .github/workflows/python-package.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index dcfa3db..f07281f 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.11"] steps: - uses: actions/checkout@v4 @@ -24,11 +24,25 @@ jobs: uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} + - name: Cache APT Packages + uses: awalsh128/cache-apt-pkgs-action@v1.4.2 + with: + # Space delimited list of packages to install. Version can be specified optionally using APT command syntax of = (e.g. xdot=1.2-2). + packages: tesseract + # Version of cache to load. Each version will have its own cache. Note, all characters except spaces are allowed. + # version: # optional, default is + # Execute Debian package pre and post install script upon restore. See README.md caveats for more information. + # execute_install_scripts: # optional, default is false + # OBSOLETE: Refresh is not used by the action, use version instead. + # refresh: # optional + # Enable debugging when there are issues with action. Minor performance penalty. + # debug: # optional, default is false - name: Install dependencies run: | python -m pip install --upgrade pip python -m pip install flake8 pytest if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names