Skip to content

feature: add or_query to es utils #330

feature: add or_query to es utils

feature: add or_query to es utils #330

Workflow file for this run

name: Test for icij-worker
on:
push:
branches: [ 'main' ]
pull_request:
paths:
- 'icij-worker/**.py'
- '.github/workflows/tests-worker.yml'
jobs:
test-icij-worker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --verbose"
jupyter: true
src: "icij-worker"
version: "~= 24.2.0"
- name: Install poetry
run: pipx install poetry
- name: Installing DBmate
run: |
curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/download/v2.19.0/dbmate-linux-amd64
chmod +x /usr/local/bin/dbmate
- name: Setup Python project
uses: actions/setup-python@v5
with:
# TODO: use a version matrix here
python-version: "3.10"
cache: poetry
- run: cd icij-worker && poetry install -v --with dev --all-extras --sync
- name: Run tests
run: |
cd icij-worker
poetry run python -m pytest -vvv --cache-clear --show-capture=all -r A .
services:
neo4j:
image: neo4j:4.4.17
env:
NEO4J_AUTH: neo4j/theneo4jpassword
NEO4JLABS_PLUGINS: '["apoc"]'
options: >-
--health-cmd "cypher-shell -u neo4j -p theneo4jpassword -d neo4j 'CALL db.ping()'"
--health-interval 2s
--health-timeout 2s
--health-retries 10
--health-start-period 20s
ports:
- 7475:7474
- 7688:7687
test-rabbit-mq:
image: rabbitmq:3.12.0-management
options: >-
--health-cmd "rabbitmq-diagnostics -q ping"
--health-interval 2s
--health-timeout 2s
--health-retries 10
--health-start-period 20s
ports:
- 5673:5672
- 15673:15672
test-postgres:
image: postgres
env:
POSTGRES_PASSWORD: changeme
options: >-
--health-cmd pg_isready
--health-interval 2s
--health-timeout 2s
--health-retries 10
--health-start-period 5s
ports:
- "5555:5432"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true