docling/.github/actions/setup-poetry/action.yml
felix 98496fafcc feat(ocr): Add OnnxTR as possible OCR engine
Signed-off-by: felix <felixdittrich92@gmail.com>
2025-03-31 14:22:59 +02:00

23 lines
689 B
YAML

name: 'Set up Poetry and install'
description: 'Set up a specific version of Poetry and install dependencies using caching.'
inputs:
python-version:
description: "Version range or exact version of Python or PyPy to use, using SemVer's version range syntax."
default: '3.11'
runs:
using: 'composite'
steps:
- name: Install poetry
run: pipx install poetry==1.8.5
shell: bash
- uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
cache: 'poetry'
- name: Update lockfile
run: poetry update
shell: bash
- name: Install dependencies
run: poetry install --all-extras
shell: bash