Skip to content

Commit 16a53b3

Browse files
committed
[MNT] add '--no-cache-dir ' flag
1 parent 9de6674 commit 16a53b3

File tree

3 files changed

+34
-34
lines changed

3 files changed

+34
-34
lines changed

.github/workflows/docs.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ jobs:
4141

4242
- name: Install dependencies
4343
run: |
44-
python -m pip install --upgrade pip
45-
python -m pip install -e ".[all_extras,test]"
46-
python -m pip install -r docs/requirements.txt
44+
python -m pip install --no-cache-dir --upgrade pip
45+
python -m pip install --no-cache-dir -e ".[all_extras,test]"
46+
python -m pip install --no-cache-dir -r docs/requirements.txt
4747
4848
- name: Show dependencies
4949
run: python -m pip list
@@ -67,9 +67,9 @@ jobs:
6767

6868
- name: Install dependencies
6969
run: |
70-
python -m pip install --upgrade pip
71-
python -m pip install -e ".[all_extras]"
72-
python -m pip install -r docs/requirements.txt
70+
python -m pip install --no-cache-dir --upgrade pip
71+
python -m pip install --no-cache-dir -e ".[all_extras]"
72+
python -m pip install --no-cache-dir -r docs/requirements.txt
7373
7474
- name: Show dependencies
7575
run: python -m pip list

.github/workflows/test.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
python-version: "3.11"
125125

126126
- name: install pre-commit
127-
run: python3 -m pip install pre-commit
127+
run: python3 -m pip install --no-cache-dir pre-commit
128128

129129
- name: Checkout code
130130
uses: actions/checkout@v5
@@ -175,8 +175,8 @@ jobs:
175175

176176
- name: Install dependencies
177177
run: |
178-
python -m pip install --upgrade pip
179-
python -m pip install build
178+
python -m pip install --no-cache-dir --upgrade pip
179+
python -m pip install --no-cache-dir build
180180
181181
make install-no-extras-for-test
182182
@@ -213,8 +213,8 @@ jobs:
213213

214214
- name: Install dependencies
215215
run: |
216-
python -m pip install --upgrade pip
217-
python -m pip install build
216+
python -m pip install --no-cache-dir --upgrade pip
217+
python -m pip install --no-cache-dir build
218218
219219
make install-all-extras-for-test
220220
@@ -246,8 +246,8 @@ jobs:
246246

247247
- name: Install dependencies for scikit-learn ${{ matrix.sklearn-version }}
248248
run: |
249-
python -m pip install --upgrade pip
250-
python -m pip install .[all_extras,test] scikit-learn==${{ matrix.sklearn-version }}.*
249+
python -m pip install --no-cache-dir --upgrade pip
250+
python -m pip install --no-cache-dir .[all_extras,test] scikit-learn==${{ matrix.sklearn-version }}.*
251251
252252
- name: Show dependencies
253253
run: python -m pip list
@@ -271,8 +271,8 @@ jobs:
271271

272272
- name: Install dependencies
273273
run: |
274-
python -m pip install --upgrade pip
275-
python -m pip install .[test]
274+
python -m pip install --no-cache-dir --upgrade pip
275+
python -m pip install --no-cache-dir .[test]
276276
277277
- name: Run doctests
278278
run: |
@@ -298,8 +298,8 @@ jobs:
298298

299299
- name: Install dependencies
300300
run: |
301-
python -m pip install --upgrade pip
302-
python -m pip install .[test]
301+
python -m pip install --no-cache-dir --upgrade pip
302+
python -m pip install --no-cache-dir .[test]
303303
304304
- name: Run core tests
305305
run: |
@@ -322,8 +322,8 @@ jobs:
322322

323323
- name: Install dependencies
324324
run: |
325-
python -m pip install --upgrade pip
326-
python -m pip install .[all_extras,test]
325+
python -m pip install --no-cache-dir --upgrade pip
326+
python -m pip install --no-cache-dir .[all_extras,test]
327327
328328
- name: Run sklearn integration tests
329329
run: |
@@ -346,8 +346,8 @@ jobs:
346346

347347
- name: Install dependencies
348348
run: |
349-
python -m pip install --upgrade pip
350-
python -m pip install .[sktime-integration,test]
349+
python -m pip install --no-cache-dir --upgrade pip
350+
python -m pip install --no-cache-dir .[sktime-integration,test]
351351
352352
- name: Run sktime integration tests
353353
run: |
@@ -370,8 +370,8 @@ jobs:
370370

371371
- name: Install dependencies
372372
run: |
373-
python -m pip install --upgrade pip
374-
python -m pip install .[sktime-integration,test]
373+
python -m pip install --no-cache-dir --upgrade pip
374+
python -m pip install --no-cache-dir .[sktime-integration,test]
375375
376376
- name: Run skpro integration tests
377377
run: |
@@ -394,8 +394,8 @@ jobs:
394394

395395
- name: Install dependencies
396396
run: |
397-
python -m pip install --upgrade pip
398-
python -m pip install .[test,test_parallel_backends]
397+
python -m pip install --no-cache-dir --upgrade pip
398+
python -m pip install --no-cache-dir .[test,test_parallel_backends]
399399
400400
- name: Run utils tests
401401
run: |
@@ -446,8 +446,8 @@ jobs:
446446

447447
- name: Install dependencies
448448
run: |
449-
python -m pip install --upgrade pip
450-
python -m pip install .[all_extras,test,test_parallel_backends]
449+
python -m pip install --no-cache-dir --upgrade pip
450+
python -m pip install --no-cache-dir .[all_extras,test,test_parallel_backends]
451451
452452
- name: Run tests with coverage
453453
run: |
@@ -499,8 +499,8 @@ jobs:
499499
- name: Install dependencies
500500
if: steps.check-examples.outputs.examples_changed == 'true'
501501
run: |
502-
python -m pip install --upgrade pip
503-
python -m pip install build
502+
python -m pip install --no-cache-dir --upgrade pip
503+
python -m pip install --no-cache-dir build
504504
make install-all-extras-for-test
505505
506506
- name: Show dependencies

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,19 +78,19 @@ uninstall:
7878
rm -fr build dist *.egg-info
7979

8080
install-test-requirements:
81-
python -m pip install .[test]
81+
python -m pip install --no-cache-dir .[test]
8282

8383
install-build-requirements:
84-
python -m pip install .[build]
84+
python -m pip install --no-cache-dir .[build]
8585

8686
install-all-extras:
87-
python -m pip install .[all_extras]
87+
python -m pip install --no-cache-dir .[all_extras]
8888

8989
install-no-extras-for-test:
90-
python -m pip install .[test]
90+
python -m pip install --no-cache-dir .[test]
9191

9292
install-all-extras-for-test:
93-
python -m pip install .[all_extras,test,test_parallel_backends,sktime-integration]
93+
python -m pip install --no-cache-dir .[all_extras,test,test_parallel_backends,sktime-integration]
9494

9595
install-editable:
9696
pip install -e .

0 commit comments

Comments
 (0)