Skip to content

Create Integration between UI and API for processing OCR records #33

Create Integration between UI and API for processing OCR records

Create Integration between UI and API for processing OCR records #33

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python application
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install the project
run: uv sync --all-extras --dev
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Lint with ruff
run: |
uv run ruff check app tests
- name: Run tests with coverage
run: |
uv run pytest tests --cov app tests/ --cov-report term