Skip to content

Commit 5484d14

Browse files
Merge #861
861: Add dependency cache in CI r=curquiza a=sanders41 # Pull Request ## Related issue Fixes #<issue_number> ## What does this PR do? - Adds a cache for dependencies in CI ## PR checklist Please check if your PR fulfills the following requirements: - [ ] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [ ] Have you read the contributing guidelines? - [ ] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Paul Sanders <psanders1@gmail.com>
2 parents fa55d4f + c2a7a25 commit 5484d14

File tree

3 files changed

+14
-21
lines changed

3 files changed

+14
-21
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,9 @@ jobs:
2222
uses: actions/setup-python@v4
2323
with:
2424
python-version: ${{ matrix.python-version }}
25+
cache: "pipenv"
2526
- name: Install pipenv
26-
run: |
27-
pip install pipx
28-
pipx install pipenv
27+
run: pipx install pipenv
2928
- name: Install dependencies
3029
run: pipenv install --dev --python=${{ matrix.python-version }}
3130
- name: Get the latest Meilisearch RC

.github/workflows/pypi-publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ jobs:
1414
uses: actions/setup-python@v4
1515
with:
1616
python-version: '3.8'
17+
cache: "pipenv"
1718
- name: Check release validity
1819
run: sh .github/scripts/check-release.sh
1920
- name: Install pipenv
20-
run: |
21-
pip install pipx
22-
pipx install pipenv
21+
run: pipx install pipenv
2322
- name: Install dependencies
2423
run: |
2524
pipenv install

.github/workflows/tests.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ jobs:
2626
uses: actions/setup-python@v4
2727
with:
2828
python-version: ${{ matrix.python-version }}
29+
cache: "pipenv"
2930
- name: Install pipenv
30-
run: |
31-
pip install pipx
32-
pipx install pipenv
31+
run: pipx install pipenv
3332
- name: Install dependencies
3433
run: pipenv install --dev --python=${{ matrix.python-version }}
3534
- name: Meilisearch (latest version) setup with Docker
@@ -52,10 +51,9 @@ jobs:
5251
uses: actions/setup-python@v4
5352
with:
5453
python-version: "3.8"
54+
cache: "pipenv"
5555
- name: Install pipenv
56-
run: |
57-
pip install pipx
58-
pipx install pipenv
56+
run: pipx install pipenv
5957
- name: Install dependencies
6058
run: pipenv install --dev --python=${{ matrix.python-version }}
6159
- name: Linter with pylint
@@ -70,10 +68,9 @@ jobs:
7068
uses: actions/setup-python@v4
7169
with:
7270
python-version: 3.9
71+
cache: "pipenv"
7372
- name: Install pipenv
74-
run: |
75-
pip install pipx
76-
pipx install pipenv
73+
run: pipx install pipenv
7774
- name: Install dependencies
7875
run: pipenv install --dev --python=${{ matrix.python-version }}
7976
- name: mypy type check
@@ -88,10 +85,9 @@ jobs:
8885
uses: actions/setup-python@v4
8986
with:
9087
python-version: 3.9
88+
cache: "pipenv"
9189
- name: Install pipenv
92-
run: |
93-
pip install pipx
94-
pipx install pipenv
90+
run: pipx install pipenv
9591
- name: Install dependencies
9692
run: pipenv install --dev --python=${{ matrix.python-version }}
9793
- name: black
@@ -106,10 +102,9 @@ jobs:
106102
uses: actions/setup-python@v4
107103
with:
108104
python-version: 3.9
105+
cache: "pipenv"
109106
- name: Install pipenv
110-
run: |
111-
pip install pipx
112-
pipx install pipenv
107+
run: pipx install pipenv
113108
- name: Install dependencies
114109
run: pipenv install --dev --python=${{ matrix.python-version }}
115110
- name: isort

0 commit comments

Comments
 (0)