Skip to content

Commit 96662c4

Browse files
authored
Add execution report uploads for all build steps in CI and publish workflows (#737)
- Add execution reports upload for LaTeX build step in both ci.yml and publish.yml - Add execution reports upload for HTML build step in both workflows - Add execution reports upload for Download Notebooks build in publish.yml - Use unique artifact names (execution-reports-latex, execution-reports-html, execution-reports-notebooks) to avoid conflicts - All report uploads trigger on build failure to help diagnose execution errors
1 parent c5f8770 commit 96662c4

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
uses: actions/upload-artifact@v5
7474
if: failure()
7575
with:
76-
name: execution-reports
76+
name: execution-reports-latex
7777
path: _build/latex/reports
7878
# Final Build of HTML
7979
- name: Build HTML
@@ -84,7 +84,7 @@ jobs:
8484
uses: actions/upload-artifact@v5
8585
if: failure()
8686
with:
87-
name: execution-reports
87+
name: execution-reports-html
8888
path: _build/html/reports
8989
- name: Install Node.js and Netlify CLI
9090
shell: bash -l {0}

.github/workflows/publish.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ jobs:
5050
shell: bash -l {0}
5151
run: |
5252
jb build lectures --builder pdflatex --path-output ./ -n -W --keep-going
53+
- name: Upload Execution Reports (LaTeX)
54+
uses: actions/upload-artifact@v5
55+
if: failure()
56+
with:
57+
name: execution-reports-latex
58+
path: _build/latex/reports
5359
- name: Copy LaTeX PDF for GH-PAGES
5460
shell: bash -l {0}
5561
run: |
@@ -60,6 +66,12 @@ jobs:
6066
run: |
6167
jb build lectures --path-output ./ --builder=custom --custom-builder=jupyter -n -W --keep-going
6268
zip -r download-notebooks.zip _build/jupyter
69+
- name: Upload Execution Reports (Download Notebooks)
70+
uses: actions/upload-artifact@v5
71+
if: failure()
72+
with:
73+
name: execution-reports-notebooks
74+
path: _build/jupyter/reports
6375
- uses: actions/upload-artifact@v5
6476
with:
6577
name: download-notebooks
@@ -74,6 +86,12 @@ jobs:
7486
shell: bash -l {0}
7587
run: |
7688
jb build lectures --path-output ./ -n -W --keep-going
89+
- name: Upload Execution Reports (HTML)
90+
uses: actions/upload-artifact@v5
91+
if: failure()
92+
with:
93+
name: execution-reports-html
94+
path: _build/html/reports
7795
# Create HTML archive for release assets
7896
- name: Create HTML archive
7997
shell: bash -l {0}

0 commit comments

Comments
 (0)