Skip to content

Fix rspec

Fix rspec #35

Workflow file for this run

name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
ruby:
- '2.7.4'
- '3.0.0'
repository:
- 'ppa:alex-p/tesseract-ocr'
- '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/*