Merge pull request #90 from prey/chore/remove-tmp-hocr #46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: [push] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| ruby: | |
| - '2.7.4' | |
| - '3.2.0' | |
| repository: | |
| - 'ppa:alex-p/tesseract-ocr5' | |
| - 'ppa:alex-p/tesseract-ocr-devel' | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Install tesseract-ocr | |
| run: | | |
| sudo add-apt-repository ${{ matrix.repository }} -y | |
| sudo apt-get update -q | |
| sudo apt-get install tesseract-ocr tesseract-ocr-eng ghostscript -y | |
| tesseract --version | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: ${{ matrix.ruby }} | |
| - name: Bundle | |
| run: | | |
| gem uninstall -aIx bundler | |
| gem install bundler | |
| bundle install --jobs 4 --retry 3 | |
| - name: Test | |
| run: bundle exec rake | |
| - name: Coverage | |
| env: | |
| CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
| run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Ruby -r coverage/lcov/* | |