File tree Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 21
21
with :
22
22
python-version : " 3.11"
23
23
24
+ - name : Cache pip dependencies
25
+ uses : actions/cache@v3
26
+ with :
27
+ path : ~/.cache/pip
28
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
29
+ restore-keys : |
30
+ ${{ runner.os }}-pip-
31
+
24
32
- name : Install dependencies
25
33
run : |
26
34
python -m pip install --upgrade pip
77
85
with :
78
86
python-version : ${{ matrix.python-version }}
79
87
88
+ - name : Cache pip dependencies
89
+ uses : actions/cache@v3
90
+ with :
91
+ path : ~/.cache/pip
92
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
93
+ restore-keys : |
94
+ ${{ runner.os }}-pip-
95
+
80
96
- name : Install dependencies
81
97
run : |
82
98
python -m pip install --upgrade pip
@@ -121,6 +137,14 @@ jobs:
121
137
with :
122
138
python-version : " 3.11"
123
139
140
+ - name : Cache pip dependencies
141
+ uses : actions/cache@v3
142
+ with :
143
+ path : ~/.cache/pip
144
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
145
+ restore-keys : |
146
+ ${{ runner.os }}-pip-
147
+
124
148
- name : Install dependencies
125
149
run : |
126
150
python -m pip install --upgrade pip
Original file line number Diff line number Diff line change @@ -105,8 +105,10 @@ def get_report_html(
105
105
106
106
# Programmatically construct the full report URL
107
107
try :
108
- owner , repo_name = github_repo .split ('/' )
109
- full_report_url = f"https://{ owner } .github.io/{ repo_name } /reports/coverage/htmlcov/index.html"
108
+ owner , repo_name = github_repo .split ("/" )
109
+ full_report_url = (
110
+ f"https://{ owner } .github.io/{ repo_name } /reports/coverage/htmlcov/index.html"
111
+ )
110
112
except ValueError :
111
113
# Fallback or default URL in case the repo format is unexpected
112
114
full_report_url = "#"
@@ -157,7 +159,7 @@ def get_report_html(
157
159
<body>
158
160
<div class="container">
159
161
<div class="header">
160
- <h1>Pytest Report</h1>
162
+ <h1>Pytest Coverage Report</h1>
161
163
<div class="score">Coverage: { coverage_metric .coverage :.2f} %</div>
162
164
<div class="metadata">
163
165
<div><strong>Lines Covered:</strong> { coverage_metric .lines_covered } </div>
You can’t perform that action at this time.
0 commit comments