Skip to content

Support python 3.9 and above only #378

Support python 3.9 and above only

Support python 3.9 and above only #378

Workflow file for this run

name: CI
on:
push:
branches: [main, master]
tags: '*'
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
tox:
name: ${{ matrix.env }}
runs-on: ubuntu-latest
strategy:
matrix:
env: [py39, py310, py311, py312, py313]
steps:
- uses: asottile/workflows/.github/actions/[email protected]
with:
submodules: false
- uses: actions/setup-python@v4
with:
python-version: |
${{
(matrix.env == 'py39' || startsWith(matrix.env, 'py39-')) && '3.9' ||
(matrix.env == 'py310' || startsWith(matrix.env, 'py310-')) && '3.10' ||
(matrix.env == 'py311' || startsWith(matrix.env, 'py311-')) && '3.11' ||
(matrix.env == 'py312' || startsWith(matrix.env, 'py312-')) && '3.12' ||
(matrix.env == 'py313' || startsWith(matrix.env, 'py313-')) && '3.13'
}}
- name: Install tesseract
run: sudo apt-get -y update && sudo apt-get install -y tesseract-ocr tesseract-ocr-fra
- name: Print tesseract version
run: echo $(tesseract --version)
- name: Update tools
run: python -mpip install --upgrade setuptools tox virtualenv
- name: Run tox
run: tox -e ${{ matrix.env }}
- name: Test pytesseract package installation
run: python -mpip install -U . && python -mpip show pytesseract && python -c 'import pytesseract'