Skip to content

Commit c9bdb42

Browse files
authored
Merge pull request #1223 from DhavalGojiya/fix/issue#1220
Fix outdated Pipfile.lock and pipenv install inconsistencies across CI jobs
2 parents b5c0b2f + d2f130b commit c9bdb42

File tree

5 files changed

+1125
-644
lines changed

5 files changed

+1125
-644
lines changed

.github/workflows/documentation.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ jobs:
3535
- name: Install Python
3636
uses: actions/setup-python@v5
3737
with:
38-
python-version: "3.10"
38+
python-version: "3.9"
39+
cache: "pipenv"
3940
- name: Install pipenv
4041
run: pip install pipenv
4142
- name: Install dependencies
4243
run: |
43-
pipenv --python $(which python) install --dev
44+
pipenv install --dev --python=3.9 --deploy
4445
- name: Build docs
4546
run: |
4647
pipenv run sphinx-apidoc -f -o docs meilisearch/

.github/workflows/pre-release-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Install pipenv
2727
run: pip install pipenv
2828
- name: Install dependencies
29-
run: pipenv install --dev --python=${{ matrix.python-version }}
29+
run: pipenv install --dev --python=${{ matrix.python-version }} --deploy
3030
- name: Get the latest Meilisearch RC
3131
run: echo "MEILISEARCH_VERSION=$(curl https://raw.githubusercontent.com/meilisearch/integration-guides/main/scripts/get-latest-meilisearch-rc.sh | bash)" >> $GITHUB_ENV
3232
- name: Meilisearch (${{ env.MEILISEARCH_VERSION }}) setup with Docker

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Install pipenv
2929
run: pip install pipenv
3030
- name: Install dependencies
31-
run: pipenv install --dev --python=${{ matrix.python-version }}
31+
run: pipenv install --dev --python=${{ matrix.python-version }} --deploy
3232
- name: Meilisearch (latest version) setup with Docker
3333
run: docker run -d -p 7700:7700 getmeili/meilisearch-enterprise:latest meilisearch --no-analytics --master-key=masterKey
3434
- name: Test with pytest
@@ -47,7 +47,7 @@ jobs:
4747
- name: Install pipenv
4848
run: pip install pipenv
4949
- name: Install dependencies
50-
run: pipenv install --dev --python=${{ matrix.python-version }}
50+
run: pipenv install --dev --python=3.9 --deploy
5151
- name: Linter with pylint
5252
run: pipenv run pylint meilisearch tests
5353

@@ -64,7 +64,7 @@ jobs:
6464
- name: Install pipenv
6565
run: pip install pipenv
6666
- name: Install dependencies
67-
run: pipenv install --dev --python=${{ matrix.python-version }}
67+
run: pipenv install --dev --python=3.9 --deploy
6868
- name: mypy type check
6969
run: pipenv run mypy meilisearch
7070

@@ -81,7 +81,7 @@ jobs:
8181
- name: Install pipenv
8282
run: pip install pipenv
8383
- name: Install dependencies
84-
run: pipenv install --dev --python=${{ matrix.python-version }}
84+
run: pipenv install --dev --python=3.9 --deploy
8585
- name: black
8686
run: pipenv run black meilisearch tests --check
8787

@@ -98,7 +98,7 @@ jobs:
9898
- name: Install pipenv
9999
run: pip install pipenv
100100
- name: Install dependencies
101-
run: pipenv install --dev --python=${{ matrix.python-version }}
101+
run: pipenv install --dev --python=3.9 --deploy
102102
- name: isort
103103
run: pipenv run isort meilisearch tests --check-only
104104

0 commit comments

Comments
 (0)