Skip to content

Commit 2037bf9

Browse files
committed
UPD: use pip caching in all workflows
1 parent 178ddd5 commit 2037bf9

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313
matrix:
1414
platform: [ubuntu-latest, macos-latest, windows-latest]
1515
python-version: [3.6, 3.9]
16-
1716
steps:
1817
- uses: actions/checkout@v2
1918
- name: Set up Python ${{ matrix.python-version }}
2019
uses: actions/[email protected]
2120
with:
2221
python-version: ${{ matrix.python-version }}
22+
cache: 'pip'
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
@@ -29,6 +29,7 @@ jobs:
2929
env:
3030
PLATFORM: ${{ matrix.platform }}
3131
TASK: build
32+
3233
test:
3334
needs: [build]
3435
name: Test - ${{ matrix.tasks }}
@@ -45,6 +46,7 @@ jobs:
4546
uses: actions/[email protected]
4647
with:
4748
python-version: ${{ matrix.python-version }}
49+
cache: 'pip'
4850
- name: Install dependencies
4951
run: |
5052
python -m pip install --upgrade pip
@@ -66,6 +68,8 @@ jobs:
6668
uses: actions/[email protected]
6769
with:
6870
python-version: 3.9
71+
cache: 'pip'
72+
cache-dependency-path: 'req-doc.txt'
6973

7074
- name: Install dependencies
7175
run: |

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
uses: actions/[email protected]
1818
with:
1919
python-version: 3.9
20+
cache: 'pip'
2021
- name: Install dependencies
2122
run: |
2223
python -m pip install --upgrade pip
@@ -40,6 +41,7 @@ jobs:
4041
uses: actions/[email protected]
4142
with:
4243
python-version: 3.9
44+
cache: 'pip'
4345
- name: Install dependencies
4446
run: |
4547
python -m pip install --upgrade pip

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
uses: actions/[email protected]
1717
with:
1818
python-version: 3.9
19+
cache: 'pip'
20+
cache-dependency-path: 'req-doc.txt'
1921

2022
- name: Install dependencies
2123
run: |

0 commit comments

Comments
 (0)