Skip to content

Commit 81e772b

Browse files
authored
[GA] Run Execution Checks on Schedule (#144)
* [GA] Run Builds on a Schedule + Execution Checks
1 parent b9dedb6 commit 81e772b

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

.github/workflows/execution.yml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Run Execution Tests [Latest Anaconda]
2+
on:
3+
schedule:
4+
# UTC 22:00 is early morning in Australia
5+
- cron: '0 22 * * *'
6+
jobs:
7+
execution-tests-linux-osx:
8+
name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }})
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: ["ubuntu-latest", "macos-latest"]
14+
python-version: ["3.8"]
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- uses: conda-incubator/setup-miniconda@v2
19+
with:
20+
auto-update-conda: true
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install Anaconda + Dependencies
23+
shell: bash -l {0}
24+
run: |
25+
conda install anaconda
26+
pip install jupyter-book sphinx-multitoc-numbering quantecon-book-theme sphinxext-rediraffe sphinx_tojupyter
27+
- name: Build Lectures (+ Execution Checks)
28+
shell: bash -l {0}
29+
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
36+
execution-tests-win:
37+
name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }})
38+
runs-on: ${{ matrix.os }}
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
os: ["windows-latest"]
43+
python-version: ["3.8"]
44+
steps:
45+
- name: Checkout
46+
uses: actions/checkout@v2
47+
- uses: conda-incubator/setup-miniconda@v2
48+
with:
49+
auto-update-conda: true
50+
python-version: ${{ matrix.python-version }}
51+
- name: Install Anaconda + Dependencies
52+
shell: powershell
53+
run: |
54+
conda install anaconda
55+
pip install jupyter-book
56+
pip install jupyter-book sphinx-multitoc-numbering quantecon-book-theme sphinxext-rediraffe sphinx_tojupyter
57+
- name: Build Lectures (+ Execution Checks)
58+
shell: powershell
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

lectures/pandas.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ Following the work you did in {ref}`Exercise 1 <pd_ex1>`, you can query the data
549549
```{code-cell} python3
550550
indices_data = read_data(
551551
indices_list,
552-
start=dt.datetime(1928, 1, 2),
552+
start=dt.datetime(1971, 1, 1), #Common Start Date
553553
end=dt.datetime(2020, 12, 31)
554554
)
555555
```

0 commit comments

Comments
 (0)