Skip to content

test: setup ES

test: setup ES #3

Workflow file for this run

---
name: pytest
on: push
jobs:
pytest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Setup Elasticsearch
run: |
pushd tests/elasticsearch
docker compose up -d
# wait until up
docker inspect --format '{{ .NetworkSettings.IPAddress }}:9200' es01 | xargs wget --retry-connrefused --tries=5 -q --wait=3 --spider
popd
- name: Run pytest
run: |
pip install -r requirements-dev.txt
pytest -v