Skip to content

Commit ce85c72

Browse files
Updated the ci yml file and enabled the caching in it
1 parent 50c4159 commit ce85c72

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ jobs:
2222
uses: actions/setup-python@v5
2323
with:
2424
python-version: ${{ matrix.python-version }}
25+
cache: "pip" # ✅ Built-in pip caching
26+
27+
- name: Cache pip dependencies (fallback)
28+
uses: actions/cache@v4
29+
with:
30+
path: ~/.cache/pip
31+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements.txt') }}
32+
restore-keys: |
33+
${{ runner.os }}-pip-${{ matrix.python-version }}-
2534
2635
- name: Install dependencies
2736
run: |
@@ -34,8 +43,5 @@ jobs:
3443
- name: Run flake8
3544
run: flake8 .
3645

37-
- name: Run tests
38-
run: pytest
39-
4046
- name: Run pytest with coverage
41-
run: pytest --cov=src
47+
run: pytest --cov=src --cov-report=term-missing --cov-fail-under=90

0 commit comments

Comments
 (0)