Update version for the next release (v0.43.0) #3583
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| merge_group: | |
| permissions: | |
| contents: read | |
| 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.10", "3.11", "3.12", "3.13"] | |
| name: integration-tests | |
| runs-on: ubuntu-latest | |
| env: | |
| PYTHONUNBUFFERED: 1 | |
| PYTHON_VERSION: ${{ matrix.python-version }} | |
| UV_LOCKED: 1 | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python ${{ env.PYTHON_VERSION }} | |
| uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | |
| with: | |
| version: "0.11.21" | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Meilisearch (latest version) setup with Docker | |
| run: docker run -d -p 7700:7700 getmeili/meilisearch-enterprise:latest meilisearch --no-analytics --master-key=masterKey | |
| - name: Test with pytest | |
| run: uv run pytest --cov-report=xml | |
| mypy: | |
| name: mypy | |
| runs-on: ubuntu-latest | |
| env: | |
| PYTHONUNBUFFERED: 1 | |
| PYTHON_VERSION: "3.10" | |
| UV_LOCKED: 1 | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python ${{ env.PYTHON_VERSION }} | |
| uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | |
| with: | |
| version: "0.11.21" | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: mypy type check | |
| run: uv run mypy meilisearch | |
| ruff: | |
| name: ruff | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Run linter | |
| uses: astral-sh/ruff-action@0ce1b0bf8b818ef400413f810f8a11cdbda0034b # v4.0.0 | |
| with: | |
| args: "check --output-format=full" | |
| - name: Run formatter | |
| run: ruff format --check --output-format=full | |
| yaml-lint: | |
| name: Yaml linting check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Yaml lint check | |
| uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1 | |
| with: | |
| config_file: .yamllint.yml |