Skip to content

Add sort_facet_values_by to Faceting model #2299

Add sort_facet_values_by to Faceting model

Add sort_facet_values_by to Faceting model #2299

Workflow file for this run

name: Tests
on:
pull_request:
push:
# trying and staging branches are for BORS config
branches:
- trying
- staging
- main
jobs:
integration_tests:
# Will not run if the event is a PR to bump-meilisearch-v* (so a pre-release PR)
# Will still run for each push to bump-meilisearch-v*
if: github.event_name != 'pull_request' || !startsWith(github.base_ref, 'bump-meilisearch-v')
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
name: integration-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install pipenv
run: |
pip install pipx
pipx install pipenv
- name: Install dependencies
run: pipenv install --dev --python=${{ matrix.python-version }}
- name: Meilisearch (latest version) setup with Docker
run: docker run -d -p 7700:7700 getmeili/meilisearch:latest meilisearch --no-analytics --master-key=masterKey
- name: Test with pytest
run: pipenv run pytest --cov-report=xml
- name: Upload coverage
uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
pylint:
name: pylint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install pipenv
run: |
pip install pipx
pipx install pipenv
- name: Install dependencies
run: pipenv install --dev --python=${{ matrix.python-version }}
- name: Linter with pylint
run: pipenv run pylint meilisearch tests
mypy:
name: mypy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install pipenv
run: |
pip install pipx
pipx install pipenv
- name: Install dependencies
run: pipenv install --dev --python=${{ matrix.python-version }}
- name: mypy type check
run: pipenv run mypy meilisearch
black:
name: black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install pipenv
run: |
pip install pipx
pipx install pipenv
- name: Install dependencies
run: pipenv install --dev --python=${{ matrix.python-version }}
- name: black
run: pipenv run black meilisearch tests --check
isort:
name: isort
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install pipenv
run: |
pip install pipx
pipx install pipenv
- name: Install dependencies
run: pipenv install --dev --python=${{ matrix.python-version }}
- name: isort
run: pipenv run isort meilisearch tests --check-only
yaml-lint:
name: Yaml linting check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Yaml lint check
uses: ibiqlik/action-yamllint@v3
with:
config_file: .yamllint.yml