Skip to content

Commit f5e1d20

Browse files
mmckyHumphreyYang
andauthored
ENH: Add GitHub Action based Link checker (#217)
* Enable Link Checker and Report Uploading * Enable action for pull requests * Fix typo for running workflow * enable build cache * update broken links Co-authored-by: Humphrey Yang <u6474961@anu.edu.au>
1 parent ac498c1 commit f5e1d20

File tree

3 files changed

+46
-2
lines changed

3 files changed

+46
-2
lines changed

.github/workflows/linkcheck.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Link Checker [Anaconda, Linux]
2+
on:
3+
pull_request:
4+
types: [opened, reopened]
5+
schedule:
6+
# UTC 12:00 is early morning in Australia
7+
- cron: '0 12 * * *'
8+
jobs:
9+
execution-tests-linux:
10+
name: Execution Tests (${{ matrix.python-version }}, ${{ matrix.os }})
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: ["ubuntu-latest"]
16+
python-version: ["3.9"]
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Setup Anaconda
21+
uses: conda-incubator/setup-miniconda@v2
22+
with:
23+
auto-update-conda: true
24+
auto-activate-base: true
25+
miniconda-version: 'latest'
26+
python-version: 3.9
27+
environment-file: environment.yml
28+
activate-environment: quantecon
29+
- name: Download "build" folder (cache)
30+
uses: dawidd6/action-download-artifact@v2
31+
with:
32+
workflow: cache.yml
33+
branch: main
34+
name: build-cache
35+
path: _build
36+
- name: Link Checker
37+
shell: bash -l {0}
38+
run: jb build lectures --path-output=./ --builder=custom --custom-builder=linkcheck
39+
- name: Upload Link Checker Reports
40+
uses: actions/upload-artifact@v2
41+
if: failure()
42+
with:
43+
name: linkcheck-reports
44+
path: _build/linkcheck

lectures/about_py.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ Apart from the cloud computing options listed above, you might like to consider
474474
```{index} single: parallel computing; Dask
475475
```
476476

477-
* [Dask](https://www.dask.org/) parallelises PyData and Machine Learning in Python.
477+
* [Dask](https://docs.dask.org/en/stable/) parallelises PyData and Machine Learning in Python.
478478

479479
```{index} single: parallel computing; pycuda
480480
```

lectures/parallelization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ wealth of the group at the end of a long simulation.
342342
Moreover, provided the simulation period is long enough, initial conditions
343343
don't matter.
344344

345-
* This is due to something called ergodicity, which we will discuss [later on](https://python-intro.quantecon.org/finite_markov.html#Ergodicity).
345+
* This is due to something called ergodicity, which we will discuss [later on](https://python.quantecon.org/finite_markov.html#id15).
346346

347347
So, in summary, we are going to simulate 50,000 households by
348348

0 commit comments

Comments
 (0)