Skip to content

fix failing tests

fix failing tests #316

Workflow file for this run

name: Tests
on:
workflow_dispatch:
push:
paths:
- 'papermerge/**'
- 'tests/**'
jobs:
check-pep8-compliance:
runs-on: ubuntu-20.04
services:
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies and validate PEP8 compliance
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install && poetry run task lint
tests_core:
needs: check-pep8-compliance
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install redis
run: sudo apt-get install -y redis-tools redis-server
- name: Install tesseract debian packages
run: |
sudo apt-get install tesseract-ocr tesseract-ocr-deu imagemagick poppler-utils
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install && poetry run task test
env:
PYTHONPATH: .