Skip to content

Commit f50d14f

Browse files
added cache
1 parent 6547070 commit f50d14f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,20 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@v4
2828

29-
- name: Create list.txt
30-
run: echo "moevm/github_repo_commitment_calc" > list.txt
29+
- name: Cache pip
30+
uses: actions/cache@v3
31+
with:
32+
path: ~/.cache/pip
33+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
34+
restore-keys: |
35+
${{ runner.os }}-pip-
3136
3237
- name: Install dependencies
3338
run: pip install -r requirements.txt
3439

40+
- name: Create list.txt
41+
run: echo "moevm/github_repo_commitment_calc" > list.txt
42+
3543
- name: Run test
3644
run: |
3745
python3 main.py ${{ matrix.args }} --token ${{ secrets.TEST_TOKEN_GITHUB }} --list list.txt --out out1.csv --branch master

0 commit comments

Comments
 (0)