Skip to content

test: cover OCR authorization boundaries #7

test: cover OCR authorization boundaries

test: cover OCR authorization boundaries #7

Workflow file for this run

name: CI
on:
push:
branches:
- prod
- dev
pull_request:
branches:
- prod
- dev
permissions:
contents: read
jobs:
backend:
name: Backend tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: services/backend-api
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
cache: maven
- name: Run Maven tests
run: ./mvnw -B test
ocr:
name: OCR tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: services/ocr-service
env:
DEBUG: 'false'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: pip
cache-dependency-path: services/ocr-service/requirements.txt
- name: Install dependencies
run: python -m pip install --upgrade pip && python -m pip install -r requirements.txt
- name: Run deterministic OCR tests
run: python -m pytest -m 'not slow and not integration' --cov=app --cov-report=term-missing --cov-report=xml --cov-fail-under=80