Skip to content

feat: Redis to ES migration #772

feat: Redis to ES migration

feat: Redis to ES migration #772

Workflow file for this run

name: Python CI
on: ["pull_request", "push"]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
poetry-version: ["1.8.2"]
steps:
- 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: Runs Elasticsearch
uses: elastic/elastic-github-actions/elasticsearch@master
with:
stack-version: 8.3.0
elasticsearch_password: changeme
- uses: actions/checkout@v4
- name: Setup poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: ${{ matrix.poetry-version }}
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Poetry install
run: poetry install
- name: Run tests
env:
ES_HOSTS: https://es1:9200
ES_PASSWORD: changeme
run: poetry run pytest