comparison mupdf-source/thirdparty/tesseract/.github/workflows/unittest-disablelegacy.yml @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 name: unittest-disablelegacy
2 # autotools build on ubuntu, unittests with disabled legacy engine.
3 # currently some unittests are failing with disabled legacy engine.
4
5 on:
6 #push:
7 schedule:
8 - cron: 0 10 * * *
9
10 jobs:
11 linux:
12 runs-on: ${{ matrix.os }}
13 timeout-minutes: 150
14 strategy:
15 fail-fast: false
16 matrix:
17 compiler: [ g++, clang++-15 ]
18 os: [ ubuntu-22.04 ]
19
20 steps:
21 - uses: actions/checkout@v4
22 with:
23 submodules: recursive
24
25 - name: Install dependencies
26 run: |
27 sudo apt-get update
28 sudo apt-get install autoconf libleptonica-dev libpango1.0-dev -y
29 sudo apt-get install cabextract -y
30 #sudo apt-get install libc++-7-dev libc++abi-7-dev -y
31
32 - name: Setup
33 run: |
34 ./autogen.sh
35
36 - name: Configure
37 run: |
38 ./configure '--disable-shared' '--disable-legacy' 'CXX=${{ matrix.compiler }}'
39
40 - name: Make and Install Tesseract
41 run: |
42 make
43 sudo make install install
44
45 - name: Make and Install Training Tools
46 run: |
47 make training
48 sudo make install training-install
49
50 - name: Display Version
51 run: |
52 ${{ matrix.compiler }} --version
53 tesseract -v
54 lstmtraining -v
55 text2image -v
56 if: success() || failure()
57
58 - name: Download fonts, tessdata and langdata required for tests
59 run: |
60 git clone https://github.com/egorpugin/tessdata tessdata_unittest
61 cp tessdata_unittest/fonts/* test/testing/
62 mv tessdata_unittest/* ../
63
64 - name: Run Tesseract on phototest.tif and devatest.png
65 run: |
66 tesseract test/testing/phototest.tif - --tessdata-dir ../tessdata
67 tesseract test/testing/devatest.png - -l hin+eng --tessdata-dir ../tessdata
68
69 - name: Make and run Unit Tests
70 run: |
71 make check
72
73 - name: Display Unit Tests Report
74 run: |
75 git log -3
76 ${{ matrix.compiler }} --version
77 cat test-suite.log
78 if: always()