Move pages between docs (#234) #381
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: . |