Skip to content

Add OpenSearch implementation #12

Add OpenSearch implementation

Add OpenSearch implementation #12

Workflow file for this run

name: ci
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
opensearch: ['1.0.1', '2.0.1', 'latest']
security-enabled: ["true", "false"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure sysctl limits
run: |
sudo swapoff -a
sudo sysctl -w vm.swappiness=1
sudo sysctl -w fs.file-max=262144
sudo sysctl -w vm.max_map_count=262144
- name: Start OpenSearch
uses: ./.ci/opensearch
with:
port: 9250
opensearch-version: ${{ matrix.opensearch }}
security-enabled: ${{ matrix.security-enabled }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
run: pipx install poetry
- name: Install python dependencies
run: |
poetry env use ${{ matrix.python-version }}
poetry install --with dev
- name: Run unit tests
run: |
poetry run python -m unittest -v tests
env:
port: 9250
opensearch-version: ${{ matrix.opensearch }}
security_enabled: ${{ matrix.security-enabled }}