Skip to content

Commit 59cf0dd

Browse files
committed
harmonize timestamp, remove main pg btns
1 parent 22878f7 commit 59cf0dd

File tree

2 files changed

+20
-11
lines changed

2 files changed

+20
-11
lines changed

.github/workflows/pylint.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
echo " 🏆 Pylint score: $SCORE out of 10"
4343
echo "PYLINT_SCORE=$SCORE" >> $GITHUB_ENV
4444
echo "PYLINT_OUTPUT_FILE=$PYLINT_OUTPUT_FILE" >> $GITHUB_ENV
45+
echo "TIMESTAMP=$TIMESTAMP" >> $GITHUB_ENV
4546
4647
# Determine badge color based on score and add it as an environment variable
4748
python3 src/rattlesnake/cicd/pylint_badge_color.py "$SCORE"
@@ -51,6 +52,7 @@ jobs:
5152
echo "PYLINT_OUTPUT_FILE=${{ env.PYLINT_OUTPUT_FILE }}"
5253
echo "PYLINT_SCORE=${{ env.PYLINT_SCORE }}"
5354
echo "BADGE_COLOR=${{ env.BADGE_COLOR }}"
55+
echo "TIMESTAMP=${{ env.TIMESTAMP }}"
5456
5557
- name: Create custom Pylint Report in HTML format (refined version)
5658
run: |
@@ -64,21 +66,25 @@ jobs:
6466
--github_sha ${{ github.sha }} \
6567
--github_repo ${{ github.repository }}
6668
67-
- name: Prepare GitHub Pages main landing page content
69+
- name: Create GitHub Pages content
6870
if: github.ref == 'refs/heads/dev' # Only deploy on dev branch
6971
run: |
7072
# Create pages directory structure
7173
mkdir -p pages/reports/pylint
72-
74+
7375
# Copy the pylint report as the main report
7476
cp pylint_report.html pages/reports/pylint/index.html
75-
76-
# Create a main index page for all reports, located at
77-
# https://sandialabs.github.io/rattlesnake-vibration-controller/
78-
python src/rattlesnake/cicd/reports_main_page.py \
79-
--github_repo ${{ github.repository }} \
80-
--pylint_score ${{ env.PYLINT_SCORE }} \
81-
--output_file pages/index.html
77+
78+
#
79+
# Update 2025-08-15: This will eventually become the main documentation
80+
# landing page, and reports_main_page.py will need to be refactored:
81+
#
82+
# # Create a main index page for all reports, located at
83+
# # https://sandialabs.github.io/rattlesnake-vibration-controller/
84+
# python src/rattlesnake/cicd/reports_main_page.py \
85+
# --github_repo ${{ github.repository }} \
86+
# --pylint_score ${{ env.PYLINT_SCORE }} \
87+
# --output_file pages/index.html
8288
8389
- name: Create pylint badge with GitHub Pages link
8490
# if: github.ref == 'refs/heads/main' # Only create badge on main branch
@@ -98,7 +104,8 @@ jobs:
98104
"pages_url": "https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/reports/pylint/",
99105
"workflow_url": "${{ github.server_url }}/${{ github.repository }}/actions/workflows/pylint.yml",
100106
"run_id": "${{ github.run_id }}",
101-
"timestamp": "$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
107+
# "timestamp": "$(date -u +"%Y-%m-%dT%H:%M:%SZ")",
108+
"timestamp": "${{ env.TIMESTAMP }}"
102109
}
103110
EOF
104111

src/rattlesnake/cicd/reports_main_page.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,16 @@
4949
<body>
5050
<div class="container">
5151
<div class="header">
52-
<h1>Rattlesnake Code Quality Reports Summary</h1>
52+
<h1>Rattlesnake Code</h1>
5353
<p>Automated code quality analysis for the Rattlesnake vibration controller</p>
54+
<!--
5455
<div class="badge">
5556
<img src="https://github.com/{github_repo}/raw/dev/badges/pylint.svg" alt="Pylint Score">
5657
</div>
5758
<div class="badge">
5859
<img src="https://github.com/{github_repo}/raw/dev/badges/coverage.svg" alt="Coverage">
5960
</div>
61+
-->
6062
</div>
6163
6264
<div class="report-card">

0 commit comments

Comments
 (0)