We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50c4159 commit ce85c72Copy full SHA for ce85c72
.github/workflows/ci.yml
@@ -22,6 +22,15 @@ jobs:
22
uses: actions/setup-python@v5
23
with:
24
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 }}-
34
35
- name: Install dependencies
36
run: |
@@ -34,8 +43,5 @@ jobs:
43
- name: Run flake8
44
run: flake8 .
45
37
- - name: Run tests
38
- run: pytest
39
-
40
46
- 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