Skip to content

Commit f33a1b9

Browse files
committed
Add code quality badges for Black and Flake8, update report links, and adjust documentation upload step
1 parent 2bfb27c commit f33a1b9

File tree

1 file changed

+12
-34
lines changed

1 file changed

+12
-34
lines changed

.github/workflows/prismalog_ci.yml

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -259,17 +259,23 @@ jobs:
259259
<h2>Code Quality Badges</h2>
260260
<div class="badge"><img src="../badges/pylint-py3.8.svg" alt="Pylint Score Python 3.8"></div>
261261
<div class="badge"><img src="../badges/coverage-py3.8.svg" alt="Coverage Python 3.8"></div>
262+
<div class="badge"><img src="../badges/black-py3.8.svg" alt="Black Python 3.8"></div>
263+
<div class="badge"><img src="../badges/flake8-py3.8.svg" alt="Flake8 Python 3.8"></div>
262264
<div class="badge"><img src="../badges/pylint-py3.10.svg" alt="Pylint Score Python 3.10"></div>
263265
<div class="badge"><img src="../badges/coverage-py3.10.svg" alt="Coverage Python 3.10"></div>
266+
<div class="badge"><img src="../badges/black-py3.10.svg" alt="Black Python 3.10"></div>
267+
<div class="badge"><img src="../badges/flake8-py3.10.svg" alt="Flake8 Python 3.10"></div>
264268
<div class="badge"><img src="../badges/pylint-py3.11.svg" alt="Pylint Score Python 3.11"></div>
265269
<div class="badge"><img src="../badges/coverage-py3.11.svg" alt="Coverage Python 3.11"></div>
270+
<div class="badge"><img src="../badges/black-py3.11.svg" alt="Black Python 3.11"></div>
271+
<div class="badge"><img src="../badges/flake8-py3.11.svg" alt="Flake8 Python 3.11"></div>
266272
</div>
267273
268274
<div class="card">
269275
<h2>Test Results</h2>
270-
<p><a href="reports/html/3.8/reports/html/pytest_report_3.8.html">Python 3.8 Test Results</a></p>
271-
<p><a href="reports/html/3.10/reports/html/pytest_report_3.10.html">Python 3.10 Test Results</a></p>
272-
<p><a href="reports/html/3.11/reports/html/pytest_report_3.11.html">Python 3.11 Test Results</a></p>
276+
<p><a href="../reports/html/3.8/reports/html/pytest_report_3.8.html">Python 3.8 Test Results</a></p>
277+
<p><a href="../reports/html/3.10/reports/html/pytest_report_3.10.html">Python 3.10 Test Results</a></p>
278+
<p><a href="../reports/html/3.11/reports/html/pytest_report_3.11.html">Python 3.11 Test Results</a></p>
273279
</div>
274280
275281
<div class="card">
@@ -314,24 +320,6 @@ jobs:
314320
<p><a href="../../htmlcov/index.html">HTML Coverage Report</a></p>
315321
</div>
316322
317-
<div class="card">
318-
<h2>Code Quality Badges (Markdown)</h2>
319-
<p class="markdown-badges">
320-
<a href="reports/html/3.8/index.html"><img src="badges/coverage-py3.8.svg" alt="Coverage Python 3.8"></a>
321-
<a href="reports/html/3.8/reports/pylint/pylint-py3.8.html"><img src="badges/pylint-py3.8.svg" alt="Pylint Python 3.8"></a>
322-
<a href="reports/html/3.8/index.html"><img src="badges/black-py3.8.svg" alt="Black Python 3.8"></a>
323-
<a href="reports/html/3.8/index.html"><img src="badges/flake8-py3.8.svg" alt="Flake8 Python 3.8"></a>
324-
<a href="reports/html/3.10/index.html"><img src="badges/coverage-py3.10.svg" alt="Coverage Python 3.10"></a>
325-
<a href="reports/html/3.10/reports/pylint/pylint-py3.10.html"><img src="badges/pylint-py3.10.svg" alt="Pylint Python 3.10"></a>
326-
<a href="reports/html/3.10/index.html"><img src="badges/black-py3.10.svg" alt="Black Python 3.10"></a>
327-
<a href="reports/html/3.10/index.html"><img src="badges/flake8-py3.10.svg" alt="Flake8 Python 3.10"></a>
328-
<a href="reports/html/3.11/index.html"><img src="badges/coverage-py3.11.svg" alt="Coverage Python 3.11"></a>
329-
<a href="reports/html/3.11/reports/pylint/pylint-py3.11.html"><img src="badges/pylint-py3.11.svg" alt="Pylint Python 3.11"></a>
330-
<a href="reports/html/3.11/index.html"><img src="badges/black-py3.11.svg" alt="Black Python 3.11"></a>
331-
<a href="reports/html/3.11/index.html"><img src="badges/flake8-py3.11.svg" alt="Flake8 Python 3.11"></a>
332-
</p>
333-
</div>
334-
335323
<p class="timestamp">Generated: $(date -u "+%Y-%m-%d %H:%M:%S UTC")</p>
336324
</body>
337325
</html>
@@ -349,9 +337,9 @@ jobs:
349337
coverage.xml
350338
junit/
351339
352-
# Step 16: Upload Documentation Artifact (Only on Python 3.11)
340+
# Step 16: Upload Documentation Artifact (Only on Python 3.10)
353341
- name: Upload Documentation Artifact
354-
if: matrix.python-version == '3.11'
342+
if: matrix.python-version == '3.10'
355343
uses: actions/upload-artifact@v4
356344
with:
357345
name: documentation
@@ -440,10 +428,6 @@ jobs:
440428
path: site/reports/html/3.8
441429
continue-on-error: true
442430

443-
- name: Debug pytest report timestamp
444-
run: |
445-
ls -l site/reports/html/3.8/
446-
447431
- name: Download HTML reports for Python 3.10
448432
uses: actions/download-artifact@v4
449433
with:
@@ -458,11 +442,10 @@ jobs:
458442
path: site/reports/html/3.11
459443
continue-on-error: true
460444

461-
# Other artifacts can be downloaded in the same way
462445
- name: Download coverage HTML
463446
uses: actions/download-artifact@v4
464447
with:
465-
name: test-reports-3.10 # Use a specific Python version that always runs tests
448+
name: test-reports-3.10
466449
path: site/temp
467450
continue-on-error: true
468451

@@ -588,11 +571,6 @@ jobs:
588571
- name: Copy README to site directory
589572
run: cp README.md site/
590573

591-
- name: Show site directory structure
592-
run: |
593-
echo "==== SITE DIRECTORY STRUCTURE ===="
594-
find site
595-
596574
- name: Deploy to GitHub Pages
597575
uses: peaceiris/actions-gh-pages@v3
598576
with:

0 commit comments

Comments
 (0)