Skip to content

Commit 4314395

Browse files
committed
fix: format CI workflow and add pip caching step
1 parent 5642399 commit 4314395

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [ "master", "main" ]
5+
branches: ["master", "main"]
66
pull_request:
77

88
jobs:
@@ -18,6 +18,15 @@ jobs:
1818
with:
1919
python-version: "3.11"
2020

21+
# 🔹 Cache pip downloads (speed boost)
22+
- name: Cache pip
23+
uses: actions/cache@v4
24+
with:
25+
path: ~/.cache/pip
26+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
27+
restore-keys: |
28+
${{ runner.os }}-pip-
29+
2130
- name: Install dependencies
2231
run: |
2332
pip install -r requirements.txt

0 commit comments

Comments
 (0)