docling/.github/workflows/checks.yml
Peter Staar f5eb49a811 add the pytests
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
2024-08-26 16:26:17 +02:00

23 lines
594 B
YAML

on:
workflow_call:
jobs:
run-checks:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-poetry
with:
python-version: ${{ matrix.python-version }}
- name: Run styling check
run: poetry run pre-commit run --all-files
- name: Install with poetry
run: poetry install --all-extras
- name: Testing
run: |
poetry run pytest -v tests
- name: Build with poetry
run: poetry build