Skip to content

Commit e2e435e

Browse files
authored
Create cache-gh-task.yml
1 parent 7b0958f commit e2e435e

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Test cache
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Cache pip
13+
uses: actions/cache@v4
14+
with:
15+
path: ~/.cache/pip
16+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
17+
restore-keys: |
18+
${{ runner.os }}-pip-
19+
20+
- name: Install deps
21+
run: pip install -r requirements.txt

0 commit comments

Comments
 (0)