Skip to content

Commit 2fd4fff

Browse files
committed
Merge branch 'main' into finite_markov_nparray
2 parents 7c65e30 + 1cbc8fc commit 2fd4fff

File tree

3 files changed

+37
-6
lines changed

3 files changed

+37
-6
lines changed

.github/workflows/cache.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build Cache [using jupyter-book]
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
tests:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Setup Anaconda
13+
uses: conda-incubator/setup-miniconda@v2
14+
with:
15+
auto-update-conda: true
16+
auto-activate-base: true
17+
miniconda-version: 'latest'
18+
python-version: 3.8
19+
environment-file: environment.yml
20+
activate-environment: quantecon
21+
- name: Build HTML
22+
shell: bash -l {0}
23+
run: |
24+
jb build lectures --path-output ./ -W --keep-going
25+
- name: Upload "_build" folder (cache)
26+
uses: actions/upload-artifact@v2
27+
with:
28+
name: build-cache
29+
path: _build

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Download "build" folder (cache)
3636
uses: dawidd6/action-download-artifact@v2
3737
with:
38-
workflow: publish.yml
38+
workflow: cache.yml
3939
branch: main
4040
name: build-cache
4141
path: _build

.github/workflows/publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ jobs:
3636
- name: Display Pip Versions
3737
shell: bash -l {0}
3838
run: pip list
39+
# - name: Download "build" folder (cache)
40+
# uses: dawidd6/action-download-artifact@v2
41+
# with:
42+
# workflow: cache.yml
43+
# branch: main
44+
# name: build-cache
45+
# path: _build
3946
# Build Assets (Download Notebooks and PDF via LaTeX)
4047
- name: Build PDF from LaTeX
4148
shell: bash -l {0}
@@ -71,11 +78,6 @@ jobs:
7178
github_token: ${{ secrets.GITHUB_TOKEN }}
7279
publish_dir: _build/html/
7380
cname: python.quantecon.org
74-
- name: Upload "_build" folder (cache)
75-
uses: actions/upload-artifact@v2
76-
with:
77-
name: build-cache
78-
path: _build
7981
- name: Prepare lecture-python.notebooks sync
8082
shell: bash -l {0}
8183
run: |

0 commit comments

Comments
 (0)