From 3528efd2dc5b1b28a255d5f62fb18f40257487a2 Mon Sep 17 00:00:00 2001 From: mmcky Date: Sun, 3 Jan 2021 14:37:51 +1100 Subject: [PATCH 1/5] update ci for env name --- .github/workflows/cache.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/coverage.yml | 2 +- .github/workflows/pdf.yml | 2 +- .github/workflows/preview.yml | 2 +- environment.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 068f201..2790653 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -62,7 +62,7 @@ jobs: miniconda-version: 'latest' python-version: 3.8 environment-file: environment.yml - activate-environment: qe-lectures + activate-environment: python-lectures - name: Checkout QuantEcon theme uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 71f3a46..b1607c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: miniconda-version: 'latest' python-version: 3.8 environment-file: environment.yml - activate-environment: qe-lectures + activate-environment: python-lectures - name: Display Conda Environment Versions shell: bash -l {0} run: conda list diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 13c6a6c..f27f8fe 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -17,7 +17,7 @@ jobs: miniconda-version: 'latest' python-version: 3.8 environment-file: environment.yml - activate-environment: qe-lectures + activate-environment: python-lectures - name: Run Execution Tests shell: bash -l {0} run: make coverage diff --git a/.github/workflows/pdf.yml b/.github/workflows/pdf.yml index 169cf51..dede68f 100644 --- a/.github/workflows/pdf.yml +++ b/.github/workflows/pdf.yml @@ -35,7 +35,7 @@ jobs: miniconda-version: 'latest' python-version: 3.8 environment-file: environment.yml - activate-environment: qe-lectures + activate-environment: python-lectures - name: Build PDF shell: bash -l {0} run: | diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 077100a..acc4b2b 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -17,7 +17,7 @@ jobs: miniconda-version: 'latest' python-version: 3.8 environment-file: environment.yml - activate-environment: qe-lectures + activate-environment: python-lectures - name: Get Changed Files id: files uses: jitterbit/get-changed-files@v1 diff --git a/environment.yml b/environment.yml index 88a5a9c..995bef9 100644 --- a/environment.yml +++ b/environment.yml @@ -1,5 +1,5 @@ -name: qe-lectures +name: python-lectures channels: - default dependencies: From 71d343b76f98552d953f0036b55db29e7f4817f7 Mon Sep 17 00:00:00 2001 From: mmcky Date: Sun, 3 Jan 2021 15:02:08 +1100 Subject: [PATCH 2/5] add template for PDF --- .github/workflows/cache.yml | 1 + .github/workflows/pdf.yml | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 2790653..9babeed 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -78,5 +78,6 @@ jobs: - name: Build Website files shell: bash -l {0} run: | + ls theme/lecture-python.theme make website THEMEPATH=theme/lecture-python.theme ls _build/website/jupyter_html/* \ No newline at end of file diff --git a/.github/workflows/pdf.yml b/.github/workflows/pdf.yml index dede68f..29a7e52 100644 --- a/.github/workflows/pdf.yml +++ b/.github/workflows/pdf.yml @@ -36,6 +36,12 @@ jobs: python-version: 3.8 environment-file: environment.yml activate-environment: python-lectures + - name: Checkout QuantEcon theme + uses: actions/checkout@v2 + with: + repository: QuantEcon/lecture-python.theme + token: ${{ secrets.ACTIONS_PAT }} + path: theme/lecture-python.theme - name: Build PDF shell: bash -l {0} run: | @@ -43,6 +49,7 @@ jobs: echo 'export PATH=/tmp/texlive/bin/x86_64-linux:$PATH' >> ~/.bash_profile source ~/.bash_profile more ~/.bash_profile + ls theme/lecture-python.theme make pdf - uses: actions/upload-artifact@v2 with: From 7a035f601de18c4aeb22b8ffb17f94477dabc3d2 Mon Sep 17 00:00:00 2001 From: mmcky Date: Sun, 3 Jan 2021 15:14:27 +1100 Subject: [PATCH 3/5] update to lecture-python name --- .github/workflows/cache.yml | 2 +- .github/workflows/ci.yml | 2 +- .github/workflows/coverage.yml | 2 +- .github/workflows/pdf.yml | 2 +- .github/workflows/preview.yml | 2 +- environment.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cache.yml b/.github/workflows/cache.yml index 9babeed..034f9a9 100644 --- a/.github/workflows/cache.yml +++ b/.github/workflows/cache.yml @@ -62,7 +62,7 @@ jobs: miniconda-version: 'latest' python-version: 3.8 environment-file: environment.yml - activate-environment: python-lectures + activate-environment: lecture-python - name: Checkout QuantEcon theme uses: actions/checkout@v2 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1607c9..dc98584 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: miniconda-version: 'latest' python-version: 3.8 environment-file: environment.yml - activate-environment: python-lectures + activate-environment: lecture-python - name: Display Conda Environment Versions shell: bash -l {0} run: conda list diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index f27f8fe..1cd5ca5 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -17,7 +17,7 @@ jobs: miniconda-version: 'latest' python-version: 3.8 environment-file: environment.yml - activate-environment: python-lectures + activate-environment: lecture-python - name: Run Execution Tests shell: bash -l {0} run: make coverage diff --git a/.github/workflows/pdf.yml b/.github/workflows/pdf.yml index 29a7e52..30d4437 100644 --- a/.github/workflows/pdf.yml +++ b/.github/workflows/pdf.yml @@ -35,7 +35,7 @@ jobs: miniconda-version: 'latest' python-version: 3.8 environment-file: environment.yml - activate-environment: python-lectures + activate-environment: lecture-python - name: Checkout QuantEcon theme uses: actions/checkout@v2 with: diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index acc4b2b..a57f9f4 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -17,7 +17,7 @@ jobs: miniconda-version: 'latest' python-version: 3.8 environment-file: environment.yml - activate-environment: python-lectures + activate-environment: lecture-python - name: Get Changed Files id: files uses: jitterbit/get-changed-files@v1 diff --git a/environment.yml b/environment.yml index de24031..5a44776 100644 --- a/environment.yml +++ b/environment.yml @@ -1,5 +1,5 @@ -name: python-lectures +name: lecture-python channels: - default dependencies: From 756248e5a48894411faba9831ff9840f0bf9ca96 Mon Sep 17 00:00:00 2001 From: mmcky Date: Sun, 3 Jan 2021 15:24:40 +1100 Subject: [PATCH 4/5] pin jinja2 --- environment.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/environment.yml b/environment.yml index 5a44776..db8b190 100644 --- a/environment.yml +++ b/environment.yml @@ -12,3 +12,4 @@ dependencies: - sphinxcontrib-jupyter - sphinxcontrib-bibtex==1.0 - joblib + - jinja2==2.11.1 From d31d8f5e2750a60078ae331a5b55e7a899b0f8f9 Mon Sep 17 00:00:00 2001 From: mmcky Date: Sun, 3 Jan 2021 15:49:56 +1100 Subject: [PATCH 5/5] pin anaconda=2020.07 --- environment.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/environment.yml b/environment.yml index db8b190..4957b11 100644 --- a/environment.yml +++ b/environment.yml @@ -4,7 +4,7 @@ channels: - default dependencies: - python=3.8 - - anaconda=2020.11 + - anaconda=2020.07 - pip - pip: - quantecon @@ -12,4 +12,3 @@ dependencies: - sphinxcontrib-jupyter - sphinxcontrib-bibtex==1.0 - joblib - - jinja2==2.11.1