Skip to content

Commit 5bd6a92

Browse files
committed
Add publishing script
1 parent 872b0e0 commit 5bd6a92

38 files changed

Lines changed: 14654 additions & 484 deletions
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Publish Benchmark Results
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths:
7+
- 'results/**'
8+
- 'report/**'
9+
- '.github/workflows/publish-results.yml'
10+
workflow_dispatch: # Manual trigger
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
jobs:
18+
build-and-deploy:
19+
runs-on: ubuntu-latest
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Python
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: '3.11'
32+
33+
- name: Install dependencies
34+
run: |
35+
pip install -r requirements.txt
36+
pip install plotly pandas kaleido # Ensure chart dependencies
37+
38+
- name: Generate HTML Report
39+
run: |
40+
cd report
41+
python create_report.py
42+
43+
- name: Prepare docs folder for GitHub Pages
44+
run: |
45+
mkdir -p docs
46+
cp report/report.html docs/index.html
47+
cp -r report/charts docs/charts 2>/dev/null || true
48+
cp -r static docs/static 2>/dev/null || true
49+
50+
- name: Setup Pages
51+
uses: actions/configure-pages@v4
52+
53+
- name: Upload artifact
54+
uses: actions/upload-pages-artifact@v3
55+
with:
56+
path: 'docs/'
57+
58+
- name: Deploy to GitHub Pages
59+
id: deployment
60+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ __pycache__/
33
*.py[codz]
44
*$py.class
55

6+
src/.env
7+
68
# C extensions
79
*.so
810

report/charts/advanced_build_errors_attempts.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
18.5 KB
Loading

report/charts/advanced_combined_assertions.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
12.8 KB
Loading

report/charts/advanced_error_heatmap.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.
16.1 KB
Loading

report/charts/advanced_errors_attempts.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)