Skip to content

Commit 95f7fb0

Browse files
committed
Enable upload of execution reports if failure()
1 parent b217ebc commit 95f7fb0

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/scheduled.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,20 @@ jobs:
1919
with:
2020
auto-update-conda: true
2121
python-version: ${{ matrix.python-version }}
22-
- name: Install Anaconda + Dependencies [Linux,OS X]
22+
- name: Install Anaconda + Dependencies
2323
shell: bash -l {0}
2424
run: |
2525
conda install anaconda
2626
pip install jupyter-book sphinx-multitoc-numbering quantecon-book-theme sphinxext-rediraffe sphinx_tojupyter
27-
- name: Build Lectures (+ Execution Checks) [Linux, OS X]
27+
- name: Build Lectures (+ Execution Checks)
2828
shell: bash -l {0}
2929
run: jb build lectures --path-output=./ -W --keep-going
30+
- name: Upload Execution Reports
31+
uses: actions/upload-artifact@v2
32+
if: failure()
33+
with:
34+
name: execution-reports
35+
path: _build/html/reports
3036
execution-tests-win:
3137
name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }})
3238
runs-on: ${{ matrix.os }}
@@ -42,12 +48,18 @@ jobs:
4248
with:
4349
auto-update-conda: true
4450
python-version: ${{ matrix.python-version }}
45-
- name: Install Anaconda + Dependencies [Windows]
51+
- name: Install Anaconda + Dependencies
4652
shell: powershell
4753
run: |
4854
conda install anaconda
4955
pip install jupyter-book
5056
pip install jupyter-book sphinx-multitoc-numbering quantecon-book-theme sphinxext-rediraffe sphinx_tojupyter
51-
- name: Build Lectures (+ Execution Checks) [Windows]
57+
- name: Build Lectures (+ Execution Checks)
5258
shell: powershell
53-
run: jb build lectures --path-output=./ -W --keep-going
59+
run: jb build lectures --path-output=./ -W --keep-going
60+
- name: Upload Execution Reports
61+
uses: actions/upload-artifact@v2
62+
if: failure()
63+
with:
64+
name: execution-reports
65+
path: _build/html/reports

0 commit comments

Comments
 (0)