File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : link-checker
2+
3+ on :
4+ push :
5+ pull_request :
6+ workflow_dispatch :
7+ schedule :
8+ - cron : ' 0 0 * * *' # Daily “At 00:00”
9+ jobs :
10+ link-checker :
11+ runs-on : ubuntu-latest
12+ defaults :
13+ run :
14+ shell : bash -l {0}
15+ if : github.repository == 'ProjectPythia/pythia-foundations'
16+ steps :
17+ - name : Cancel previous runs
18+ uses : styfle/cancel-workflow-action@0.9.0
19+ with :
20+ access_token : ${{ github.token }}
21+ - uses : actions/checkout@v2
22+ - uses : conda-incubator/setup-miniconda@master
23+ with :
24+ channels : conda-forge
25+ channel-priority : strict
26+ activate-environment : pythia-book-dev
27+ auto-update-conda : false
28+ python-version : 3.8
29+ environment-file : environment.yml
30+ mamba-version : ' *'
31+ use-mamba : true
32+
33+ - name : Disable notebook execution
34+ shell : python
35+ run : |
36+ import yaml
37+ with open('_config.yml') as f:
38+ data = yaml.safe_load(f)
39+ data['execute']['execute_notebooks'] = 'off'
40+ with open('_config.yml', 'w') as f:
41+ yaml.dump(data, f)
42+ - name : Check external links
43+ run : |
44+ jupyter-book build --builder linkcheck .
You can’t perform that action at this time.
0 commit comments