Skip to content

annotation

annotation #1755

Workflow file for this run

name: annotation
run-name: annotation
on:
push:
paths:
- "annotation/**"
pull_request:
paths:
- "annotation/**"
jobs:
linters:
strategy:
matrix:
python-version: ["3.8.15"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- run: pip install flake8
- run: flake8 --extend-ignore=E203 annotation
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8.15"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies and run tests
run: |
python -m pip install --upgrade pip
cd annotation
pip install poetry>=1.1.13
poetry install --no-root
poetry add ../lib/filter_lib
poetry add ../lib/tenants
poetry add ../lib/badgerdoc_storage
poetry run pytest
env:
POSTGRES_HOST: 127.0.0.1
POSTGRES_PORT: 5432
POSTGRES_DB: annotation
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres