Skip to content

Commit 46c9e12

Browse files
authored
Merge pull request #1 from QuantEcon/add-ci
add ci builds
2 parents 5924e0a + 47d6d5b commit 46c9e12

File tree

3 files changed

+66
-1
lines changed

3 files changed

+66
-1
lines changed

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Build Project [myst]
2+
on: [push]
3+
jobs:
4+
tests:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v2
9+
- name: Setup Anaconda
10+
uses: goanpeca/setup-miniconda@v1
11+
with:
12+
auto-update-conda: true
13+
auto-activate-base: true
14+
miniconda-version: 'latest'
15+
python-version: 3.8
16+
environment-file: environment.yml
17+
activate-environment: qe-lectures
18+
- name: Install sphinxcontrib-tomyst
19+
shell: bash -l {0}
20+
run: |
21+
git clone https://github.com/QuantEcon/sphinxcontrib-tomyst
22+
cd sphinxcontrib-tomyst && python setup.py install
23+
- name: Install quantecon-book-theme
24+
shell: bash -l {0}
25+
run: |
26+
git clone https://github.com/QuantEcon/quantecon-book-theme
27+
cd quantecon-book-theme
28+
python setup.py install
29+
- name: Install Dependencies
30+
shell: bash -l {0}
31+
run: |
32+
pip install myst-nb
33+
- name: Display Conda Environment Versions
34+
shell: bash -l {0}
35+
run: conda list
36+
- name: Display Pip Versions
37+
shell: bash -l {0}
38+
run: pip list
39+
- name: Build HTML
40+
shell: bash -l {0}
41+
run: |
42+
pwd
43+
make html
44+
- name: Preview Deploy to Netlify
45+
uses: nwtgck/actions-netlify@v1.1
46+
with:
47+
publish-dir: '_build/html/'
48+
production-branch: master
49+
github-token: ${{ secrets.GITHUB_TOKEN }}
50+
deploy-message: "Preview Deploy from GitHub Actions"
51+
env:
52+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
53+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131

132132
# The theme to use for HTML and HTML Help pages. See the documentation for
133133
# a list of builtin themes.
134-
html_theme = 'qe-lectures'
134+
html_theme = 'quantecon_book_theme'
135135

136136
# Theme options are theme-specific and customize the look and feel of a theme
137137
# further. For a list of options available for each theme, see the

environment.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: qe-lectures
2+
channels:
3+
- default
4+
dependencies:
5+
- python=3.8
6+
- anaconda=2020.07
7+
- pip
8+
- pip:
9+
- interpolation
10+
- sphinxcontrib-jupyter
11+
- sphinxcontrib-bibtex
12+
- joblib

0 commit comments

Comments
 (0)